首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    服务器SecureCRT连接失败怎么办?

    服务器安装Linux系统,可以使用SecureCRT远程输入命令管理,但使用过程中有时候会出现连接失败的故障,要怎么办呢?亚洲云小编在这里总结几个常见故障以及解决办法。 1、网络链接   当主机使用无线网时,网络连接设置为桥接模式   当主机使用以太网时,网络连接设置为NAT模式   最重要的是开启VM的网络服务   windows的服务 services.msc中打开 VMware NAT Service 2、Linux网络配置   可以使用固定IP,此时设置的IP要与Windows主机的IP在同一网关下   sudo vi /etc/network/interfaces   内容如下:   auto lo   iface lo inet loopback   auto eth0   iface eth0 inet static   address 192.168.255.101   netmask 255.255.255.0   gateway 192.168.255.1   也可以使用自动获取IP   直接删掉刚才vi编辑的文件最后的部分,只留前两句   auto lo   iface lo inet loopback   然后重启网络   sudo /etc/init.d/networking restart   使用 ifconfig查看网络IP,是否是同一网关的,使用ping 主机IP是否通路 3、Linux启动SSH服务   如果Linux没有启动这个服务就算你在SecureCRT上设置完成也无法链接成功,因为Linux还没有支持   先使用sudo apt-get update 指令更新一下源然后使用   sudo apt-get install openssh-server //安装SSH服务   安装SSH服务,查看服务是否开启   sudo ps -e | grep ssh //查看SSH服务   sudo service ssh start //启动SSH服务   如图为已经开启了SSH服务的打印 4、设置SecureCRT   在以上流程做完后设置基本不会遇到问题,如果遇到问题看看前边的步骤是否完成   在SecureCRT上新建一个快速链接,选择SSH   然后输入登录名和密码,然后会出现一个接受什么授权,就算是创建成功了   总结:网络配置时,注意IP的设定以及设定完后重启网络;注意SSH服务,如果Linux上SSH服务没有开启,SecureCRT会出现链接不成功,且窗口打印出一串方框,需要联系主机商解决。

    02

    linux 命令route add default dev eth0和route add default gw eth0的区别?[通俗易懂]

    大家好,又见面了,我是你们的朋友全栈君。 本机以太网卡eth0的IP地址为手动配置: 网关IP地址为192.168.1.1/24 #ifconfig eth0 192.168.1.100 netmask 255.255.255.0 #route add default dev eth0 //默认路由,将去往未知网络的数据包全部从接口eth0发出去 测试结果为ping外网失败; [root@localhost ~]# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0 [root@localhost ~]# ping www.baidu.com -c 5 PING www.a.shifen.com (61.135.169.105) 56(84) bytes of data. From localhost (192.168.1.110) icmp_seq=2 Destination Host Unreachable From localhost (192.168.1.110) icmp_seq=3 Destination Host Unreachable From localhost (192.168.1.110) icmp_seq=4 Destination Host Unreachable From localhost (192.168.1.110) icmp_seq=5 Destination Host Unreachable — www.a.shifen.com ping statistics — 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4001ms pipe 3 但是,如果我不写默认路由出接口,而是直接下一跳,却可以ping通外网! 如下: #route del default dev eth0 //删掉刚才配的静态路由 #route add default gw 192.168.1.1 //写默认路由的下一跳地址 现在ping外网却通了! [root@localhost ~]# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 [root@localhost ~]# ping www.baidu.com -c 5 PING www.a.shifen.com (61.135.169.125) 56(84) bytes of data. 64 bytes from 61.135.169.125: icmp_req=1 ttl=51 time=305 ms 64 bytes from 61.135.169.125: icmp_req=2 ttl=51 time=145 ms 64 bytes from 61.135.169.125: icmp_req=3 ttl=51 time=98.3 ms 64 bytes from 61.135.169.125: icmp_req=4 ttl=51 time=75.5 ms 64 bytes from 61.135.169.125: icmp_req=5 ttl=51 time=342 ms — www.a.shifen.com ping statistics — 5 packets transmitted, 5 received, 0% packet loss, time 4005ms

    02

    Linux如何添加路由_linux添加永久路由命令

    大家好,又见面了,我是你们的朋友全栈君。 Linux如何添加路由 a.如何使用命令给Linux添加一个默认网关? 缺省网关路由: 默认网关就是数据包不匹配任何的路由规则,最后流经的地址关口!网关按字面意思就是网络的关口 ,就相当于我们办公室的大门一样,大家上班就要经过办公室的门一样。 使用route -n 查看网关信息,或者 netstat -rn查看路由 [root@machine1 ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 如何删除路由表: [root@machine1 ~]# route del default gw 192.168.0.1 [root@machine1 ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 配置方法: 1、setup 2、配置网卡配置文件:/etc/sysconfig/network-scripts/ifcfg-eth0 关键字:GATEWAY=192.168.0. 重启网卡配置生效 3、route add default gw 192.168.0.1 #(临时生效) [root@machine1 ~]# route add default gw 192.168.0.1 [root@machine1 ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 如何添加网络路由? b.网络路由:即去往某个网段的路由 一般多个网段之间相互通信,希望建立一条优先的路由,而不是通过默认的网关。拿家里来说, 你要去卫生间有卫生间的门,去卧室有卧室的门。这两个门就是网络路由了。家里的大门呢,就是 默认路由。

    01
    领券