欢迎各位兄弟 发布技术文章
这里的技术是共享的
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.1.15
GATEWAY=192.168.1.11
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=none
IPADDR=192.168.1.45
NETMASK=255.255.255.0
GATEWAY=192.168.1.11
USERCTL=no
ONBOOT=yes
TYPE=Ethernet