# 网络信息 root@ubuntu24:~# ip a 2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 00:0c:29:69:68:2b brd ff:ff:ff:ff:ff:ff altname enp3s0 inet 192.168.6.168/24 brd 192.168.6.255 scope global dynamic noprefixroute ens160 valid_lft 84876sec preferred_lft 84876sec inet6 fe80::20c:29ff:fe69:682b/64 scope link valid_lft forever preferred_lft forever
# 连接外网测试 root@ubuntu24:~# ping www.baidu.com PING www.a.shifen.com (180.101.50.242) 56(84) bytes of data. 64 bytes from 180.101.50.242: icmp_seq=1 ttl=53 time=7.38 ms 64 bytes from 180.101.50.242: icmp_seq=2 ttl=53 time=8.14 ms 64 bytes from 180.101.50.242: icmp_seq=3 ttl=53 time=7.79 ms 64 bytes from 180.101.50.242: icmp_seq=4 ttl=53 time=7.82 ms 64 bytes from 180.101.50.242: icmp_seq=5 ttl=53 time=7.83 ms
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 01-NOV-202414:43:16
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=orcl)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production Start Date 26-OCT-202417:56:29 Uptime 5 days 20 hr. 46min. 47 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/19.3.0/db/network/admin/listener.ora Listener LogFile /u01/app/oracle/diag/tnslsnr/orcl/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=orcl)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Services Summary... Service "orcl"has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB"has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... The command completed successfully