Linux sola NIC para configurar múltiples IP

  

1, copiando un ifcfg-eth0: 1 perfil conseguido: cp /etc /sysconfig /network-scripts /ifcfg-eth0 /etc /sysconfig /network-scripts /ifcfg-eth0: 1 vi /etc /sysconfig /network-scripts /ifcfg-eth0: 1 # Intel Corporation 82566DC de red Gigabit conexión del dispositivo eth0 = BOOTPROTO = ninguno BROADCAST = 218.95.37.255 HWADDR = 00: 19: D1: 34: 2d: B8 IPADDR = 218.95. 37.250 NETMASK RED ONBOOT Gateway Tipo eht0 = 255.255.255.192 = 218.95.37.192 = sí = 218.95.37.193 = Ethernet ifconfig: 1 hasta 2, de manera temporal (perdió después del reinicio): ifconfig eth0: 1 192.168.0.2 máscara de red 255.255.255.0 hasta 3, de manera escritura :! # /bin /sh ETH01 = /etc /sysconfig /network-scripts /ifcfg-eth0: 1 toque $ ETH01 eco DEVICE = eth0: 1 "$ ETH01 BOOTPROTO eco = ninguno" $ ETH01 eco IPADDR = 192.168.40.76 "$ eth01 echo NETMASK = 255.255.255.0" $ eth01 echo ONBOO T = sí》 $ eth01 /etc/init.d/network restart
zh-CN"],null,[0.98809493],zh-CN"]]]

Copyright © Conocimiento de Windows All Rights Reserved