Skip to content


配置一个内网网卡

先查看下网卡

ifconfig


eth0 ……外网
lo ……回路

启用第二块网卡做内网

ifconfig eth1 up
ifconfig eth1 192.168.0.11 netmask 255.255.0.0

这样就可以使用了,但重启网络或机器后配置就会失效

想要不失效就需写的文件里

vi etc/sysconfig/networking/profiles/default/ifcfg-eth1


DEVICE=eth1
BOOTPROTO=static
HWADDR=00:44:88:6C:3C:88
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.0.11
TYPE=Ethernet

Posted in linux 维护优化, 技术.

Tagged with .


No Responses (yet)

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.