1.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
3.3.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.100.2 0.0.0.0 UG 0 0 0 eth2
不知道有什么不行的?
看看这个:#ifconfig
eth0 Link encap:Ethernet HWaddr 00:09:6B:37:D8:B8
inet addr:10.30.29.8 Bcast:10.30.29.255 Mask:255.255.255.0
inet6 addr: fe80::209:6bff:fe37:d8b8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:144017 errors:0 dropped:0 overruns:0 frame:0
TX packets:264571 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13784554 (13.1 Mb) TX bytes:383110734 (365.3 Mb)
Interrupt:10
eth0:0 Link encap:Ethernet HWaddr 00:09:6B:37:D8:B8
inet addr:10.30.31.8 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10
# ip route
10.30.29.0/24 dev eth0 scope link
10.30.31.0/24 dev eth0.0 proto kernel scope link src 10.30.31.8
127.0.0.0/8 dev lo scope link
default via 10.30.29.253 dev eth0
我还真没做过网管!我真的不懂,你能说明一下吗?不要用这样鄙视的语气吧!
不知道你提到物理层LLC层网络层路由和路由表route-help要说明什么。[/quote:3f2c515791]
语气重了些, 见谅...IP协议是工作在网络层的, 网卡则是工作在物理层和数据链路层的, 所以说在一块网卡上设置多个IP地址完全是可以的, 根本用不着改造网线吧? :mrgreen: ...
IP包在网络层的选择主要取决于子网和路由表, 若是同一子网就直接发送给下层处理, 若是不同子网就由路由表来决定数据包的走向...
哈, 考CCNA也有好些日子了, 也不知道说错了没有, 说错了别打偶... :em04:
ifconfig eth0:0 10.30.31.8 netmask 255.255.255.0
这样应该就行了
语气重了些, 见谅...IP协议是工作在网络层的, 网卡则是工作在物理层和数据链路层的, 所以说在一块网卡上设置多个IP地址完全是可以的, 根本用不着改造网线吧? :mrgreen: ...
本文关键:如何在同一个网卡邦定2个不同子网的ip