求一个IP切换软件
- skyx
- 论坛版主
- 帖子: 9202
- 注册时间: 2006-12-23 13:46
- 来自: Azores Islands
- 联系:
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- 5451vs5451
- 帖子: 345
- 注册时间: 2006-07-14 18:56
- 来自: Apple Valley, Planet Tux, Linux System
在/etc/network/interfaces里面多分配几个ip就是了,根本用不着切换。
代码: 全选
# 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
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
# added by pppoeconf
auto eth0
iface eth0 inet dhcp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
auto eth1
iface eth1:company inet static
address 192.168.10.8
netmask 255.255.255.0
auto eth1:company
- lyman
- 帖子: 64
- 注册时间: 2006-04-07 14:22
- 联系:
-
- 帖子: 397
- 注册时间: 2006-10-13 18:53
- 来自: 湖南农业大学