查看ubuntu 14.04的网关和DNS

时间:2023-03-10 08:08:55
查看ubuntu 14.04的网关和DNS
root@ubuntu:~# nm-tool

NetworkManager Tool

State: connected (global)

- Device: eth0  [自动以太网] ----------------------------------------------
Type: Wired
Driver: e1000
State: connected
Default: yes
HW Address: 00:0C:29:3D:B3:0A Capabilities:
Carrier Detect: yes
Speed: 1000 Mb/s Wired Properties
Carrier: on IPv4 Settings:
Address: 10.111.131.66
Prefix: 24 (255.255.255.0)
Gateway: 10.111.131.1 DNS: 172.16.202.5