兩張網卡的ip設定?和封包流向? - BBS
By Mason
at 2008-04-05T10:48
at 2008-04-05T10:48
Table of Contents
> netstat -I vr0;netstat -I rl0;ifconfig
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
vr0 1500 <Link#1> 00:50:ba:ef:55:bc 1799456 0 23058581 0 0
vr0 1500 140.116.250/2 she911 15572 - 23058578 - -
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
rl0 1500 <Link#2> 00:02:44:59:d6:be 15775743 0 5 0 0
rl0 1500 140.116.250/2 140.116.250.26 13991934 - 0 - -
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 140.116.250.27 netmask 0xffffff00 broadcast 140.116.250.255
ether 00:50:ba:ef:55:bc
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet 140.116.250.26 netmask 0xffffff00 broadcast 140.116.250.255
ether 00:02:44:59:d6:be
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
我公佈給朋友使用的ip是140.116.250.26,這個ip在rl0這張網卡上面。
可是為什麼看起來好像是 .26 的 rl0 負責流進的封包?
.27 的 vr0 負責流出的封包?
從ip來看不是應該進出的封包都從 rl0 的.26嗎?
這兩張網卡都直接接到網路孔上,這兩個網路口各有100Mb的頻寬
會想要兩張網卡的原因是因為一個網路孔只有100Mb對我來說太小了= =
--
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
vr0 1500 <Link#1> 00:50:ba:ef:55:bc 1799456 0 23058581 0 0
vr0 1500 140.116.250/2 she911 15572 - 23058578 - -
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
rl0 1500 <Link#2> 00:02:44:59:d6:be 15775743 0 5 0 0
rl0 1500 140.116.250/2 140.116.250.26 13991934 - 0 - -
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 140.116.250.27 netmask 0xffffff00 broadcast 140.116.250.255
ether 00:50:ba:ef:55:bc
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet 140.116.250.26 netmask 0xffffff00 broadcast 140.116.250.255
ether 00:02:44:59:d6:be
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
我公佈給朋友使用的ip是140.116.250.26,這個ip在rl0這張網卡上面。
可是為什麼看起來好像是 .26 的 rl0 負責流進的封包?
.27 的 vr0 負責流出的封包?
從ip來看不是應該進出的封包都從 rl0 的.26嗎?
這兩張網卡都直接接到網路孔上,這兩個網路口各有100Mb的頻寬
會想要兩張網卡的原因是因為一個網路孔只有100Mb對我來說太小了= =
--
Tags:
BBS
All Comments
Related Posts
csup 的老問題 (ports & world)
By Agatha
at 2008-04-05T05:43
at 2008-04-05T05:43
設好卻 samba 無法進入
By Anonymous
at 2008-04-04T15:36
at 2008-04-04T15:36
設好卻 samba 無法進入
By Zora
at 2008-04-04T06:44
at 2008-04-04T06:44
在 FreeBSD 6.2 上建 mencoder
By Agnes
at 2008-04-04T02:24
at 2008-04-04T02:24
Adaptec 3805 如何建大於 2TB 的 partition
By Dora
at 2008-04-04T02:15
at 2008-04-04T02:15