Linux开机自启动网路连接

每个人的都不一样

Xshell  (Build N/A)
Copyright (c) 2002-2016 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
[c:\~]$ 

Connecting to 192.168.5.6:22...
Could not connect to '192.168.5.6' (port 22): Connection failed.

Type `help' to learn how to use Xshell prompt.
[c:\~]$ 

Connecting to 192.168.5.6:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Wed Mar 14 16:32:57 2018 from main2
[root@main ~]# cd /etc/sysconfig/network-scripts
[root@main network-scripts]# ll
总用量 232
-rw-r--r--. 1 root root   326 3月  14 14:50 ifcfg-eno16777736
-rw-r--r--. 1 root root   254 1月  15 2015 ifcfg-lo
lrwxrwxrwx. 1 root root    24 3月  14 2018 ifdown -> ../../../usr/sbin/ifdown
-rwxr-xr-x. 1 root root   627 1月  15 2015 ifdown-bnep
-rwxr-xr-x. 1 root root  5817 1月  15 2015 ifdown-eth
-rwxr-xr-x. 1 root root  6196 3月   6 2015 ifdown-ib
-rwxr-xr-x. 1 root root   781 1月  15 2015 ifdown-ippp
-rwxr-xr-x. 1 root root  4201 1月  15 2015 ifdown-ipv6
lrwxrwxrwx. 1 root root    11 3月  14 2018 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x. 1 root root  1642 1月  15 2015 ifdown-post
-rwxr-xr-x. 1 root root  1068 1月  15 2015 ifdown-ppp
-rwxr-xr-x. 1 root root   837 1月  15 2015 ifdown-routes
-rwxr-xr-x. 1 root root  1444 1月  15 2015 ifdown-sit
-rwxr-xr-x. 1 root root  1599 11月  6 2014 ifdown-Team
-rwxr-xr-x. 1 root root  1556 11月  6 2014 ifdown-TeamPort
-rwxr-xr-x. 1 root root  1462 1月  15 2015 ifdown-tunnel
lrwxrwxrwx. 1 root root    22 3月  14 2018 ifup -> ../../../usr/sbin/ifup
-rwxr-xr-x. 1 root root 12616 1月  15 2015 ifup-aliases
-rwxr-xr-x. 1 root root   859 1月  15 2015 ifup-bnep
-rwxr-xr-x. 1 root root 11502 1月  15 2015 ifup-eth
-rwxr-xr-x. 1 root root 10145 3月   6 2015 ifup-ib
-rwxr-xr-x. 1 root root 12039 1月  15 2015 ifup-ippp
-rwxr-xr-x. 1 root root 10430 1月  15 2015 ifup-ipv6
lrwxrwxrwx. 1 root root     9 3月  14 2018 ifup-isdn -> ifup-ippp
-rwxr-xr-x. 1 root root   642 1月  15 2015 ifup-plip
-rwxr-xr-x. 1 root root  1043 1月  15 2015 ifup-plusb
-rwxr-xr-x. 1 root root  2609 1月  15 2015 ifup-post
-rwxr-xr-x. 1 root root  4154 1月  15 2015 ifup-ppp
-rwxr-xr-x. 1 root root  1925 1月  15 2015 ifup-routes
-rwxr-xr-x. 1 root root  3263 1月  15 2015 ifup-sit
-rwxr-xr-x. 1 root root  1755 11月  6 2014 ifup-Team
-rwxr-xr-x. 1 root root  1876 11月  6 2014 ifup-TeamPort
-rwxr-xr-x. 1 root root  2682 1月  15 2015 ifup-tunnel
-rwxr-xr-x. 1 root root  1740 1月  15 2015 ifup-wireless
-rwxr-xr-x. 1 root root  4623 1月  15 2015 init.ipv6-global
-rw-r--r--. 1 root root 15316 1月  15 2015 network-functions
-rw-r--r--. 1 root root 26134 1月  15 2015 network-functions-ipv6
[root@main network-scripts]# vim ifcfg-eno16777736
[root@main network-scripts]# 
Connection closed by foreign host.

Disconnected from remote host(main) at 17:35:23.

Type `help' to learn how to use Xshell prompt.
[c:\~]$ 

 

posted @ 2018-03-14 17:37  快乐的小银龙  阅读(302)  评论(0编辑  收藏  举报