1、打开链接:选择设置-链接
桌面-右键-选择打开终端 输入 ifconfig 可以拿到ip地址 192.168.52.128
输入ifconfig
lw@localhost ~]$ ifconfig
可以看到
ens33: flags=4163 mtu 1500
inet 192.168.52.128 netmask 255.255.255.0 broadcast 192.168.52.255
inet6 fe80::8715:cd9c:605c:eb78 prefixlen 64 scopeid 0x20
ether 00:0c:29:82:5b:8e txqueuelen 1000 (Ethernet)
RX packets 5570 bytes 863 (7.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2039 bytes 128327 (125.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2、 ping 192.168.52.128
可以查看能否成功连接
PING 172.17.51.39 (172.17.51.39) 56(84) bytes of data.
64 bytes from 172.17.51.39: icmp_seq=1 ttl=64 time=0.016 ms
64 bytes from 172.17.51.39: icmp_seq=2 ttl=64 time=0.034 ms
64 bytes from 172.17.51.39: icmp_seq=3 ttl=64 time=0.031 ms
64 bytes from 172.17.51.39: icmp_seq=4 ttl=64 time=0.034 ms