网络地址命令

1. dhclient命令使用动态主机配置协议动态的配置网络接口的网络参数

[root@prop-idm ~]# ps -elf | grep dhcp
4 S root       787   708  0  80   0 - 28342 poll_s Mar27 ?        00:00:00 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-enp1s0f0.pid -lf /var/lib/NetworkManager/dhclient-1222c7d9-3b41-4420-8488-92ba1fedf6ad-enp1s0f0.lease -cf /var/lib/NetworkManager/dhclient-enp1s0f0.conf enp1s0f0
0 S root     17569 11884  0  80   0 - 28166 pipe_w 01:41 pts/1    00:00:00 grep --color=auto dhcp

[root@prop-idm ~]# vim  /var/lib/NetworkManager/dhclient-1222c7d9-3b41-4420-8488-92ba1fedf6ad-enp1s0f0.lease

lease {
  interface "enp1s0f0";
  fixed-address 10.236.114.210;
  option wpad "http://autocache.entsvcs.net";
  option subnet-mask 255.255.255.0;
  option routers 10.236.114.1;
  option dhcp-lease-time 43200;
  option dhcp-message-type 5;
  option domain-name-servers 15.128.128.54,15.128.128.53;
  option dhcp-server-identifier 20.198.64.36;
  option ntp-servers 15.128.128.123;
  option broadcast-address 10.236.114.255;
  option domain-name "apj.dxccorp.net";
  renew 5 2019/03/29 05:09:13;
  rebind 5 2019/03/29 10:52:49;
  expire 5 2019/03/29 12:22:49;
}

2. nslookup命令 常用域名查询工具,就是查DNS信息用的命令。

[root@prop-idm ~]# nslookup prop-idm.dxctech.tk
Server:        15.128.128.54
Address:    15.128.128.54#53

Non-authoritative answer:
Name:    prop-idm.dxctech.tk
Address: 10.236.114.210
 

other:

 ip route change default via 10.0.2.2 dev enp0s3
 ip route
 tracepath 8.8.8.8
 tracepath -n 8.8.8.8
 ip a
 ps -ef | grep dhcp
 less /var/lib/dhcp/dhclient.enp0s3.leases
 less /var/lib/dhcp/dhclient.enp0s8.leases
 ps -ef | grep dhcp
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值