在Linux下配置网络(命令式)


[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
        [root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0


        # Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
        DEVICE=eth0
        BOOTPROTO=none
        HWADDR=00:19:21:12:F3:4E
        ONBOOT=yes
        NETMASK=255.255.255.0
        IPADDR=192.168.1.188
        GATEWAY=192.168.1.254
        TYPE=Ethernet
        USERCTL=no
        IPV6INIT=no
        PEERDNS=yes
        [root@localhost ~]#

        [root@localhost network-scripts]# cat ifcfg-eth0
        # Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
        DEVICE=eth0
        BOOTPROTO=none
        BROADCAST=192.168.1.255
        HWADDR=00:19:21:12:F3:4E
        IPADDR=192.168.1.188
        NETMASK=255.255.255.0
        NETWORK=192.168.1.0
        ONBOOT=yes
        GATEWAY=192.168.1.254
        TYPE=Ethernet
        [root@localhost network-scripts]# vi ifcfg-eth0

 

本文作者:
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3