linux network

  1. Biosdevname
    • Biosdevname uses devices name that reveal information about the physical location. e.g em123 (Ethernet Motherboard Portnumber)
  2.  /etc/network/interface.   set it to use static ip, in the file end add the following , and followed by ifdown eth0 . ifup eth0

          auto eth0

          iface eth0 inet static

          address 10.0.0.100

          netmask 255.255.255.0

            gateway 10.0.0.1      

  • /etc/resolv.conf save dns server which was given in bootup stage 
  • network tools, ping time to leave an round trip time
  • dig , find dns relay issue. 

root@ubuntu:/etc# dig google.com

; <<>> DiG 9.9.5-3ubuntu0.4-Ubuntu <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58828
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 5 IN A 216.58.201.46

;; Query time: 29 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Sun Apr 22 14:21:02 PDT 2018
;; MSG SIZE rcvd: 44

扫描二维码关注公众号,回复: 45676 查看本文章

use namp to check which ports the host is open    

猜你喜欢

转载自www.cnblogs.com/anyu686/p/8914141.html