歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

CentOs7 開啟網絡連接

輸入ifconfig

root@localhost ~]# ifconfig

eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> 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<link>

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<UP,LOOPBACK,RUNNING> mtu 65536

inet 127.0.0.1 netmask 255.0.0.0

inet6 ::1 prefixlen 128 scopeid 0x10<host>

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<UP,BROADCAST,MULTICAST> 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<UP,BROADCAST,MULTICAST> 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 關閉網絡

圖形界面就在這裡開關。

Copyright © Linux教程網 All Rights Reserved