|
|
/etc/network/interfaces的配置如下:
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # The primary network interface
- auto eth0
- iface eth0 inet static
- address 202.121.210.103
- netmask 255.255.0.0
- network 202.121.0.0
- broadcast 202.121.255.255
- gateway 202.121.212.129
- # dns-* options are implemented by the resolvconf package, if installed
- dns-nameservers 202.121.209.11
- dns-search SMUZone
- auto tap0
- iface tap0 inet manual
- up ifconfig $IFACE 0.0.0.0 up
- down ifconfig $IFACE down
- tunctl_user xz
- auto br0
- iface br0 inet static
- address 202.121.210.103
- netmask 255.255.0.0
- network 202.121.0.0
- broadcast 202.121.255.255
- gateway 202.121.212.129
复制代码
运行结果如下:
- xz@Xz-Laptop:~$ sudo ifup tap0
- ifup: interface tap0 already configured
- xz@Xz-Laptop:~$ sudo ifup br0
- br0: ERROR while getting interface flags: No such device
- SIOCSIFADDR: No such device
- br0: ERROR while getting interface flags: No such device
- SIOCSIFNETMASK: No such device
- SIOCSIFBRDADDR: No such device
- br0: ERROR while getting interface flags: No such device
- br0: ERROR while getting interface flags: No such device
- Failed to bring up br0.
- xz@Xz-Laptop:~$
复制代码
谢谢,需要更多的信息,请跟贴提出。 |
|