CentOs7 开启网络连接

输入ifconfig

root@localhost ~]# ifconfig

eno16777736: flags=4163  mtu 1500
        inet 192.168.1.18  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::20c:29ff:fec0:cd5a  prefixlen 64  scopeid 0x20
        ether 00:0c:29:c0:cd:5a  txqueuelen 1000  (Ethernet)
        RX packets 263728  bytes 378939837 (361.3 MiB)
        RX errors 0  dropped 3  overruns 0  frame 0
        TX packets 140985  bytes 8786382 (8.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 0  (Local Loopback)
        RX packets 16888  bytes 1438004 (1.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16888  bytes 1438004 (1.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


virbr0: flags=4099  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 00:00:00:00:00:00  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


virbr0-nic: flags=4099  mtu 1500
        ether 52:54:00:fe:a6:53  txqueuelen 500  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0



eno16777736  这个名字就是网络连接,其它的干什么的暂时还不知道。

ifup eno16777736   连接网络

ifdown eno16777736  关闭网络


图形界面就在这里开关。

CentOs7 开启网络连接_第1张图片


你可能感兴趣的:(Linux)