Linux开机自启动网路连接

本文展示了使用Xshell连接远程服务器的过程,并记录了连接失败与成功的情况。此外,还详细列出了Linux环境下网络配置文件的目录结构及部分文件属性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

每个人的都不一样

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:\~]$ 

 

转载于:https://www.cnblogs.com/lcycn/p/8568985.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值