Linux View IP address, display too NIC configuration, network device

Source: Internet
Author: User
Tags nslookup

Ifconfig eth0 shows the configuration of an Ethernet card

Ifup eth0 enable a ' eth0 ' network device

Ifdown eth0 disables a ' eth0 ' network device

Ifconfig eth0 192.168.1.1 netmask 255.255.255.0 control IP Address

Ifconfig eth0 promisc set ' eth0 ' into promiscuous mode to sniff packets (sniffing)

Dhclient eth0 enable ' eth0 ' in DHCP mode

Route-n Show routing Table

Route add-net 0/0 GW ip_gateway Configura default Gateway

Route add-net 192.168.0.0 netmask 255.255.0.0 GW 192.168.1.1 Configure static route to reach network ' 192.168.0.0/16 '

Route del 0/0 GW ip_gateway remove static route

echo "1" >/proc/sys/net/ipv4/ip_forward activate IP routing

Hostname show hostname of system

Host www.example.com lookup hostname to resolve name to IP address and viceversa (1)

nslookup www.example.com lookup hostname To resolve name to IP address and viceversa (2)

IP link Show Show link status, all interfaces

Mii-tool eth0 Show link status of ' eth0 '

Ethtool eth0 Show statistics of network card ' eth0 '

Netstat-tup Show all active network connections and their PID

NETSTAT-TUPL Show all network services listening on the system and their PID

Tcpdump TCP port Show all HTTP traffic

Iwlist Scan Show Wireless networks

Iwconfig eth1 Show configuration of a wireless network card

Hostname show hostname

Host www.example.com lookup hostname to resolve name to IP address and viceversa

nslookup www.example.com lookup hostname To resolve name to IP address and viceversa

Whois www.example.com lookup on Whois database

Go top INDEX ^

Microsoft Windows Networks (SAMBA)

Nbtscan ip_addr NetBIOS Name Resolution

NMBLOOKUP-A ip_addr NetBIOS Name Resolution

Smbclient-l ip_addr/hostname Show remote shares of a Windows host

SMBGET-RR smb://ip_addr/share like wget can download files from a host Windows via SMB

Mount-t Smbfs-o username=user,password=pass//winclient/share/mnt/share mount a Windows network share

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.