debian与centos上单网卡配置多个IP,10下手动更改IP地址

#iface wlan0 inet dhcp

 

#auto wlan0

debian下有关单网卡绑定双ip的主题材料

图片 1

#iface wlan0 inet dhcp

wireless-key AAAAABBBBB

#wireless-key lailailai

auto lo

  auto lo eth0iface lo inet loopbackiface eth0 inet staticaddress
192.168.10.56netmask   255.255.254.1gateway 192.168.10.1

auto eth1

 

sudo /etc/init.d/networking restart

  $ sudo /etc/init.d/networking restart重启互联网

auto eth0

        network 10.0.0.0

iface eth0 inet static

        broadcast 10.0.0.255

把文件中对应无线网卡的片段修改为如下情势

        network 10.0.0.0

Ubuntu7.10入手动更改IP地址的不二诀窍:

debian与contos单网卡绑定八个IP,假使是远程操作的话(如:ssh),切记要重启网卡的时候要
|| ifup eth0 不然第…

gateway 192.168.0.1

iface lo inet loopback

wireless-essid TP-LINK

allow-hotplug eth0:1

iface lo inet loopback

        # dns-* options are implemented by the resolvconf package, if
installed

gedit /etc/network/interfaces

 

iface eth1 inet static

allow-hotplug eth0

wireless-rate 54M

        netmask 255.255.255.0

照此思路,修改 /etc/network/interfaces ,有线网卡也能用了

 

address 192.168.0.200

### for wlan by evan

netmask 255.255.255.0

        address 10.0.0.212

address 192.168.1.140

#auto wlan0

netmask 255.255.255.0

#allow-hotplug wlan0

gateway 192.168.1.1

debian与centos上单网卡配置三个IP

        netmask 255.255.255.0

# This file describes the network interfaces available on your system

发表评论

电子邮件地址不会被公开。 必填项已用*标注