十月 2008


FreeBSDBingla on 31 十月 2008 04:16 下午

因為onboard 的網卡找不到,今天請教了長輩,原dmesg看到是如下
miibus0: on vr0
amphy0: on miibus0
amphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:80:c8:4e:a3:a6
以為onboard 的那一張,是amphy0 害我一直往 amphy 找
經長輩解釋,amphy 是辨視vr的

所以要用以下的方式 Continue Reading »

JuniperBingla on 31 十月 2008 04:07 下午

FE 設定 speed duplex
[edit interface fe-4/0/0]
lab@tp# set speed 100m

[edit interface fe-4/0/0]
lab@tp# set link-mode full-deplex

GE 設定
Continue Reading »

Juniper-EBingla on 24 十月 2008 06:45 上午

1645/TCP,UDP radius, RADIUS authentication protocol (default for Cisco and Juniper Networks RADIUS servers) Unofficial
1646/TCP,UDP radacct, RADIUS accounting protocol (default for Cisco and Juniper Networks RADIUS servers) Unofficial
1812/TCP,UDP radius, RADIUS authentication protocol Official
1813/TCP,UDP radacct, RADIUS accounting protocol Official

參考
http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

FreeBSDBingla on 21 十月 2008 11:15 上午

以一台剛灌好OS 6.3 的機器直接source 安裝pure-ftpd 用以下的參數去configure pure-ftpd

pure-ftpd-1.0.21]#./configure –with-altlog CLF –with-throttling –with-virtualchroot –with-rfc2640 –with-inetd –with-ftpwho –prefix=/usr/local/pure-ftpd
會出現以下的訊息
configure: error: iconv headers not found.
Continue Reading »

Juniper-EBingla on 18 十月 2008 03:41 下午

1. Reboot the router by pressing the recessed software reset button on the primary SRP module (see Figure 29) and then pressing the <mb> key sequence during the countdown.
2. Disable authentication at the console level.
:boot##disable console authentication
If you remember the password at this point, you can override this action by
entering:
:boot##no disable console authentication
3. Reload the operating system.
:boot##reload
When the operating system reloads, you can access the console without a password.

Juniper-EBingla on 18 十月 2008 03:40 下午

Router>erase secrets 60
erase secrets
1. Use to delete all CLI passwords and secrets.
2. After you issue this command, press the software reset button (是下面那一個洞)(see Figure 29) within the time you specify for this command.
3. Allows you to set the number of seconds (1–60) for this procedure to be accomplished.
4. Allows you to set a new password when you have forgotten your password.
5. Can be used with the service unattended password-recovery command.

FreeBSDBingla on 14 十月 2008 03:13 下午

#pw groupadd ftpuser -g 21
#pw useradd ftpuser -u 21 -g ftpuser -c “ftphome” -d /home/ftphome -s /sbin/nologin
#chown ftpuser:ftpuser /home/ftphome

/usr/local/sbin/pure-ftpd -S ,3078 -a 5001 -w -O /var/log/pureftpd.log &

-a 登入者均為虛擬的root被限在該目錄裡

-S ,3078 代表用3078 來當ftp port 不加的話default 為 21 port

-O 定義log file

-w 使用FXP 的功能

在網路上找到pure-config.pl 的方式啟動 pure-ftpd ,它可以套用 config file
但前題是要改一下pure-config.pl 的 mode 變可執行
Continue Reading »

FreeBSDBingla on 14 十月 2008 02:50 下午

root@bingla[/home/bing]#ifconfig em0 alias 203.204.204.237 netmask 255.255.255.192
root@bingla[/home/bing]#ifconfig
em0: flags=8843 mtu 1500
options=b
inet6 fe80::20d:61ff:fe4e:a02b%em0 prefixlen 64 scopeid 0×1
inet 203.204.204.234 netmask 0xffffffc0 broadcast 203.204.204.255
inet 203.204.204.237 netmask 0xffffffc0 broadcast 203.204.204.255

root@bingla[/home/bing]#ifconfig em0 203.204.204.237 -alias
root@bingla[/home/bing]#ifconfig
em0: flags=8843 mtu 1500
options=b
inet6 fe80::20d:61ff:fe4e:a02b%em0 prefixlen 64 scopeid 0×1
inet 203.204.204.234 netmask 0xffffffc0 broadcast 203.204.204.255

CentOS and FreeBSDBingla on 14 十月 2008 11:47 上午

在我裝好之後的CentOS裡沒有 telnet 的指令
[root@tiger bing]# which telnet
是空的,所以可以用以下的方式安裝

[root@tiger bing]# yum install telnet
Loading “installonlyn” plugin
Setting up Install Process
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 82 kB 00:00
################################################## 283/283
primary.xml.gz 100% |=========================| 242 kB 00:00
################################################## 536/536
primary.xml.gz 100% |=========================| 853 kB 00:00
################################################## 2458/2458
primary.xml.gz 100% |=========================| 157 B 00:00
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for telnet to pack into transaction set.
telnet-0.17-39.el5.i386.r 100% |=========================| 7.7 kB 00:00
—> Package telnet.i386 1:0.17-39.el5 set to be updated
–> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
telnet i386 1:0.17-39.el5 base 57 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 57 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): telnet-0.17-39.el5 100% |=========================| 57 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Importing GPG key 0xE8562897 “CentOS-5 Key (CentOS 5 Official Signing Key) ” from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: telnet ######################### [1/1]

Installed: telnet.i386 1:0.17-39.el5
Complete!
[root@tiger bing]#

應該還有些東西沒有灌好,就怕有關連性
另外default site 應該也要改一下,像FreeBD 的 /etc/make.conf

VMware and WindowsBingla on 06 十月 2008 02:59 下午

Virtual Machine 虛擬機器使用愈來愈多,網路上的使用經驗也很多Google 一下就有很多了,但我只記錄我遇到的問題
目前VMware Server 2 is free ,只要註冊就有序號,安裝後用Web的方式即可使用

遇到的
Q1:重開機後無法啟動VMware
Ans1:在電腦服務裡的 VMware Host Agent 沒有啟動

Q2:

繼續補充..