หลังจากได้ Router Asus WL-500GPv2 มาได้หนึ่งวัน Router ตัวเก่ารุ่น dlink G604T ที่ว่าใกล้พังแล้ว ก็พังเลย เลยต้องไปหาชื้อ ADSL Modem อย่างเดียว ซึ่งแทบไม่มีขายแล้ว มีแต่ที่เป็น ADSL Router ซึ่งราคาก็ไม่ได้ต่างกันเลย เดี่ยวนี้ ADSL Router ก็จะ support Bridge connection แทบทั้งสิ้น ซึ่งรุ่นที่ผมเล็งไว้คือ
ทั้งสามรุ่นมี 1 LAN ราคาใกล้เคียงกัน อยู่ในราวๆ 1000 เศษๆ สำหรับผม ผมเลือกใช้ dlink dsl-520b ซึ่งได้มาในราคา 1,090 บาท
สำหรับ modem ของ dlink ยังคงความมีชื่อเสียงในเรื่องความร้อนได้เหมือนเดิม (ประชด) ส่วน Asus ไม่ร้อนเลยสักนิด
มาดูข้างในกัน มีอะไรใน dlink dsl-520b...
Chipset: BCM96345
CLI Interface: BusyBox v1.00
น่าแปลกตอนที่ telnet เข้าไป หน้าจอขึ้น
BCM96338 ADSL Router
Login:
BCM96338 น่าจะเป็นรุ่นของ CPU
เมื่อ telnet เข้าไป ก็ใช้ help เพื่อดูคำสั่ง ซึ่งก็มีคำสั่งดังนี้
?
help
logout
reboot
adsl
atm
brctl
cat
ddns
df
dumpcfg
echo
ifconfig
kill
arp
defaultgateway
dhcpserver
dns
lan
passwd
ppp
remoteaccess
restoredefault
route
save
swversion
wan
ping
ps
pwd
sntp
sysinfo
tftp
งง ไม่มีคำสั่ง ls ... มาดูกันต่อดีกว่า
> sysinfo
Number of processes: 26
9:40pm up 15:09,
load average: 1 min:0.00, 5 min:0.03, 15 min:0.00
total used free shared buffers
Mem: 6116 5744 372 0 144
Swap: 0 0 0
Total: 6116 5744 372
> ps
PID Uid VmSize Stat Command
1 admin 36 S init
2 admin SWN [ksoftirqd/0]
3 admin SW< [events/0]
4 admin SW< [khelper]
5 admin SW< [kblockd/0]
6 admin SW [pdflush]
7 admin SW [pdflush]
8 admin SW [kswapd0]
9 admin SW< [aio/0]
10 admin SW [mtdblockd]
17 admin 68 S -sh
46 admin 156 S cfm
148 admin 28 S pvc2684d
225 admin 88 S dhcpd
231 admin 132 S sntp -s time1.nimt.or.th -s time.nist.gov -t Bangkok,
238 admin 360 S httpd
239 admin 184 S diapd
243 admin 184 S pppd -c 0.0.100.1 -r TRUE -i nas_0_0_100 -u peerasan@
351 admin 76 S /bin/dnsprobe
370 admin 208 S tr69c
484 admin 52 S syslogd -C -l 7
487 admin 36 S klogd
595 admin 440 S telnetd
596 admin 540 S telnetd
615 admin 252 S sh -c ps
616 admin 236 R ps
ifconfig
> ifconfig
br0 Link encap:Ethernet HWaddr 00:22:B0:0D:BA:84
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15190 errors:0 dropped:0 overruns:0 frame:0
TX packets:17435 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1738429 (1.6 MiB) TX bytes:16151159 (15.4 MiB)
eth0 Link encap:Ethernet HWaddr 00:22:B0:0D:BA:84
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:745970 errors:16 dropped:0 overruns:0 frame:0
TX packets:987025 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:104008703 (99.1 MiB) TX bytes:1108157115 (1.0 GiB)
Interrupt:23 Base address:0x2800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2148 (2.0 KiB) TX bytes:2148 (2.0 KiB)
nas_0_0_100 Link encap:Ethernet HWaddr 00:22:B0:0D:BA:85
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:992490 errors:0 dropped:0 overruns:0 frame:0
TX packets:749171 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1090132353 (1.0 GiB) TX bytes:108619235 (103.5 MiB)
ppp_0_0_100_1 Link encap:Point-Point Protocol
inet addr:124.121.60.65 P-t-P:124.121.60.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:17504 errors:0 dropped:0 overruns:0 frame:0
TX packets:12996 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:15327521 (14.6 MiB) TX bytes:1476513 (1.4 MiB)
>
cat /proc/cpuinfo
> cat /proc/cpuinfo
system type : 96332CG
processor : 0
cpu model : BCM6338 V1.0
BogoMIPS : 239.20
wait instruction : no
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : no
unaligned access : 470484
VCED exceptions : not available
VCEI exceptions : not available
>
cat /proc/meminfo
> cat /proc/meminfo
MemTotal: 6116 kB
MemFree: 292 kB
Buffers: 152 kB
Cached: 1148 kB
SwapCached: 0 kB
Active: 2152 kB
Inactive: 288 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 6116 kB
LowFree: 292 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 1784 kB
Slab: 1936 kB
Committed_AS: 4088 kB
PageTables: 296 kB
VmallocTotal: 1048560 kB
VmallocUsed: 1048 kB
VmallocChunk: 1047452 kB
>
cat /proc/version
> cat /proc/version
Linux version 2.6.8.1 (jenny@BS5) (gcc version 3.4.2) #1 Wed Apr 30 16:10:30 CST 2008
>
cat /proc/modules
> cat /proc/modules
ip_queue 10592 0 - Live 0xc0111000
ipt_connlimit 1696 0 - Live 0xc0108000
ipt_MASQUERADE 3280 1 - Live 0xc00fa000
ip_nat_irc 2304 0 - Live 0xc0103000
ipt_mark 416 0 - Live 0xc0101000
ip_nat_tftp 1888 0 - Live 0xc00ff000
ipt_TCPMSS 2304 2 - Live 0xc00fd000
ipt_LOG 4064 0 - Live 0xc00f4000
ipt_limit 896 0 - Live 0xc00f8000
ipt_FTOS 992 0 - Live 0xc00f6000
iptable_raw 544 0 - Live 0xc00f2000
ipt_REDIRECT 768 0 - Live 0xc00f0000
ip_nat_ftp 2976 0 - Live 0xc00ee000
ip_nat_rtsp 4816 0 - Live 0xc0093000
ipt_state 544 2 - Live 0xc00e9000
ipt_MARK 704 0 - Live 0xc00d4000
ipt_NOTRACK 672 0 - Live 0xc00d2000
ip_conntrack_rtsp 73024 1 ip_nat_rtsp, Live 0xc00d6000
ip_conntrack_tftp 1824 0 - Live 0xc009f000
ip_conntrack_irc 68896 1 ip_nat_irc, Live 0xc00c0000
ip_conntrack_ftp 20608 1 ip_nat_ftp, Live 0xc00b9000
ip_nat_ipsec 46720 0 - Live 0xc00ac000
ip_conntrack_ipsec 30640 0 - Live 0xc0096000
ip_nat_h323 5056 0 - Live 0xc0056000
ip_conntrack_h323 35280 1 ip_nat_h323, Live 0xc00a2000
ip_nat_pptp 2048 0 - Live 0xc0064000
ip_conntrack_pptp 3312 0 - Live 0xc0062000
ip_nat_gre 1280 0 - Live 0xc0060000
ip_conntrack_gre 2064 2 ip_nat_pptp,ip_conntrack_pptp, Live 0xc005e000
iptable_mangle 960 0 - Live 0xc0020000
iptable_nat 15632 12 ip_queue,ipt_MASQUERADE,ip_nat_irc,ip_nat_tftp,ipt_REDIRECT,ip_nat_ftp,ip_nat_rt
sp,ip_nat_ipsec,ip_nat_h323,ip_nat_pptp,ip_nat_gre, Live 0xc0059000
ip_conntrack 29984 22 ip_queue,ipt_connlimit,ipt_MASQUERADE,ip_nat_irc,ip_nat_tftp,ipt_REDIRECT,ip_nat
_ftp,ip_nat_rtsp,ipt_state,ipt_NOTRACK,ip_conntrack_rtsp,ip_conntrack_tftp,ip_con
ntrack_irc,ip_conntrack_ftp,ip_nat_ipsec,ip_conntrack_ipsec,ip_nat_h323,ip_conntr
ack_h323,ip_nat_pptp,ip_conntrack_pptp,ip_conntrack_gre,iptable_nat, Live 0xc008a000
iptable_filter 928 1 - Live 0xc001e000
ip_tables 14144 16 ip_queue,ipt_connlimit,ipt_MASQUERADE,ipt_mark,ipt_TCPMSS,ipt_LOG,ipt_limit,ipt_
FTOS,iptable_raw,ipt_REDIRECT,ipt_state,ipt_MARK,ipt_NOTRACK,iptable_mangle,iptab
le_nat,iptable_filter, Live 0xc0008000
bcm_enet 25280 0 - Live 0xc0048000
bcmprocfs 15152 0 - Live 0xc0010000
br2684 65760 0 - Live 0xc0036000
blaa_dd 7104 0 - Live 0xc000d000
adsldd 140288 0 - Live 0xc0066000
atmapi 64960 3 br2684,blaa_dd,adsldd, Live 0xc0025000
>
iptables -L
> iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- 192.168.1.0/24 anywhere udp dpt:30006
ACCEPT tcp -- anywhere anywhere tcp dpt:30005
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
DROP all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- 192.168.1.0/24 anywhere udp dpt:30006
ACCEPT tcp -- anywhere anywhere tcp dpt:30005
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
DROP all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
>
ถ้าใช้คำสั่ง sh ก็จะเข้า shell mode ซึ่งจะมีคำสั่งให้ใช้เพิ่มอีกเล็กน้อย
# help
Built-in commands:
-------------------
. : break cd continue eval exec exit export help login newgrp
read readonly set shift times trap umask wait [ busybox cat chmod
date echo false ifconfig init insmod kill klogd linuxrc ln logger
mkdir mount msh ping ps pwd reboot rm rmmod route sendarp sh
sysinfo syslogd test tftp true tty vconfig
#
ส่วน เรื่องอื่นๆ เช่น ความสามารถทั่วไป การใช้งาน ผมไม่พูดถึงนะ เอาว่า router รุ่นนี้มีความสามารถเรื่อง QoS, Firewall, DDNS, NAT, DMZ, Port forward
ไม่มีความเห็น