[list:b6b419c0e1] inet 1.1.2.3/24 brd [color=red:b6b419c0e1]1.255.255.255 [/color:b6b419c0e1]scope global eth1
inet 1.1.2.8/32 scope global eth1 [/list:u:b6b419c0e1]
再想想是否如此?
要不还是在那儿更新一下吧
比如
ifconfig eth0 1.1.2.3 netmask 255.255.255.0
用ip addr ls 看的时候掩码就是 1.255.255.255 形式的.
如
inet 1.1.2.3/24 brd 1.255.255.255 scope global eth0
郁闷ing
try:
ifconfig eth0 1.1.2.3 netmask 255.255.255.0 broadcast 1.1.2.255
看错了
晕了了,呵呵
我在sw无论怎么设置就是不通,trunk qos .......
是啊, 去掉VLAN和非争用通道的概念, SWITCH和HUB也没啥太大区别了
是呀,但是有人做过这些实例;还是试验一下了,对次我买网卡就花了300多大元了!
在第3层,爱怎么设就怎么设.
ip rule add from 192.168.100.102/32 table 2 pref 1500 添加路由规则
ip route add 192.168.100.0/24 via 192.168.100.241 table 2从192.168.100.0访问192.168.100.1..........[/quote:bb5015ee69]
搞完了,好好写一下这个过程,来向大家交代;
在下面的配置里如何添加各自的默认网关?
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:69:00:EB
inet6 addr: fe80::2e0:4cff:fe69:eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:727984 errors:0 dropped:0 overruns:0 frame:0
TX packets:519161 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:873069042 (832.6 Mb) TX bytes:534748014 (509.9 Mb)
Interrupt:10 Base address:0xf000
eth0.2 Link encap:Ethernet HWaddr 00:E0:4C:69:00:EB
inet addr:10.99.229.8 Bcast:10.99.229.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:fe69:eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:341630 errors:0 dropped:0 overruns:0 frame:0
TX packets:514980 errors:0 dropped:0 overruns:0 carrier:0
本文关键:如何在同一个网卡邦定2个不同子网的ip