eth0,eth1,eth2,lo是什么

来源:互联网 发布:wear it out 编辑:程序博客网 时间:2024/06/03 21:30
eth0,eth1,eth2……代表网卡一,网卡二,网卡三……

lo代表127.0.0.1,即localhost


Ubuntu 配置多个ip地址:/etc/network/interfaces



root@ubuntu:/etc/network# cat interfaces   
auto eth0  
iface eth0 inet static  
address 192.168.88.134  
netmask 255.255.255.0  
gateway 192.168.88.1  
  
auto eth0:1  
iface eth0:1 inet static  
address 192.168.88.135  
netmask 255.255.255.0  
up route add -host 192.168.88.135 dev eth0:1  
  
auto eth0:2  
iface eth0:2 inet static  
address 192.168.88.136  
netmask 255.255.255.0  
up route add -host 192.168.88.136 dev eth0:2  

0 0
原创粉丝点击