redhat9中配置静态IP(vmware软件)

 

1、查看系统

[root@PC1 home]# cat /etc/system-release
Red Hat Enterprise Linux release 9.0 (Plow)

 

2、当前IP

[root@PC1 home]# ifconfig | head
ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.3.66  netmask 255.255.255.0  broadcast 192.168.3.255
        inet6 fe80::20c:29ff:fe97:a973  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:97:a9:73  txqueuelen 1000  (Ethernet)
        RX packets 1634  bytes 1468966 (1.4 MiB)
        RX errors 0  dropped 6  overruns 0  frame 0
        TX packets 1249  bytes 94211 (92.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

 

3、

 

 

4、

 

 

5、

 

 

6、

 

 

7、

 

 

8、

 

 

9、

 

 

10、

[root@PC1 home]# ifconfig | head -n 5
ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.3.77  netmask 255.255.255.0  broadcast 192.168.3.255
        inet6 fe80::20c:29ff:fe97:a973  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:97:a9:73  txqueuelen 1000  (Ethernet)
        RX packets 1680  bytes 1473260 (1.4 MiB)
[root@PC1 home]# ping -c 3 www.baidu.com
PING www.a.shifen.com (14.215.177.38) 56(84) bytes of data.
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=49 time=55.8 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=49 time=60.6 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=3 ttl=49 time=55.8 ms

--- www.a.shifen.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 55.780/57.417/60.643/2.281 ms

 

posted @ 2022-05-31 17:28  小鲨鱼2018  阅读(238)  评论(0编辑  收藏  举报