学习啦 > 学习电脑 > 操作系统 > Linux教程 > linux查看ip地址、显示太网卡配置、网络设备指令

linux查看ip地址、显示太网卡配置、网络设备指令

时间: 志艺942 分享

linux查看ip地址、显示太网卡配置、网络设备指令

学习啦在线学习网   你还在为不知道linux查看ip地址、显示太网卡配置、网络设备指令而不知所措么?下面来是学习啦小编为大家收集的linux查看ip地址、显示太网卡配置、网络设备指令,欢迎大家阅读:

  linux查看ip地址、显示太网卡配置、网络设备指令

  ifconfig eth0 显示一个以太网卡的配置

学习啦在线学习网   ifup eth0 启用一个 'eth0' 网络设备

学习啦在线学习网   ifdown eth0 禁用一个 'eth0' 网络设备

学习啦在线学习网   ifconfig eth0 192.168.1.1 netmask 255.255.255.0 控制IP地址

  ifconfig eth0 promisc 设置 'eth0' 成混杂模式以嗅探数据包 (sniffing)

学习啦在线学习网   dhclient eth0 以dhcp模式启用 'eth0'

学习啦在线学习网   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 of 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 80 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


看了“linux查看ip地址、显示太网卡配置、网络设备指令”还想看:
1.Linux系统怎么配置网络IP地址

2.LINUX操作系统的IP地址如何配置

3.linux系统(ubuntu)怎么查看ip地址

4.Linux如何使用arping命令检测IP地址冲突

2862999