Display network configurations/settings (including the IP address) - ifconfig
Assign IP Address - ifconfig eth0 192.168.1.6
Show status of ethernet interface eth0 - ethtool eth0
Manually set ethernet interface speed - ethtool --change eth0 autoneg off speed 100 duplex full
Show status of wireless interface eth1 - iwconfig eth1
Manually set wireless interface speed - iwconfig eth1 rate 1Mb/s fixed
List wireless networks in range - iwlist scan
List network interfaces - ip link show
Rename interface eth0 to wan - ip link set dev eth0 name wan
Bring interface eth0 up (or down) - ip link set dev eth0 up
List addresses for interfaces - ip addr show
Add (or del) ip and mask (255.255.255.0) - ip addr add 192.168.1.2/24 brd + dev eth0
List routing table - ip route show
Set default gateway to 192.168.1.1 -
- ip route add default via 192.168.1.1
- route add default gw 192.168.1.1
Remove latency added above - tc qdisc del dev lo root
Lookup DNS ip address for name or vice versa - host ipmango.com
List internet services on a system - netstat -tupl
List active connections to/from system - netstat -tup
Run GUI command on $HOSTNAME as $USER - ssh -f -Y $USER@$HOSTNAME xeyes
Run command on $HOST as $USER - ssh $USER@$HOST command
Copy with permissions to $USER's home directory on $HOST - scp -p -r $USER@$HOST: file dir/
Name of the driver your Ethernet Card is using - # grep eth0 /etc/modules.conf
See Your Public And LAN IP Addresses
1 comments:
IF ANYBODY KNOWS MORE IP COMMANDS FOR LINUX THEN LEAVE A COMMENT WITH THOSE COMMANDS,WHICH ON BEING APPROVED WILL BE ADDED TO OUR BLOG.
www.ipmango.com
Post a Comment