因为我的笔记本常常在家里跟单位来回用。单位是固定IP,家里是自动的。这样每次启动后,都要编辑interfaces,再重启才能实现HOST,GUEST上网的。(我知道的方法)。于是我就给GUEST设置了两张网卡,分别定了固定IP,一个是单位,一个是家里。实现了不用改interfaces就可以上网。
但是,不管我怎么设HOST的IP,HOST就是上不了网。有时甚至能PING能网关,都上不了网。汗。。
问题1、有什么好方法解决我这种两地IP的问题。
问题2,我把我的设置复制出来,看看有什么问题。或者要改什么,加什么。才能实现。
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0
down ifconfig $IFACE down
tunctl_user lxp
auto tap1
iface tap1 inet manual
up ifconfig $IFACE 0.0.0.0
down ifconfig $IFACE down
tunctl_user lxp
auto br0
iface br0 inet static
address 10.155.71.196
netmask 255.255.252.0
network 10.155.68.0
broadcast 10.155.71.255
gateway 10.155.68.1
bridge_ports all tap0 tap1
auto br1
iface br1 inet static
address 192.168.1.201
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge_ports all tap1 tap0
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0
[问题]看看我的设置有什么问题。
-
- 帖子: 27
- 注册时间: 2007-06-18 21:11
- 来自: 东莞