0.01 Ubuntu Linux Ethernet Learning

Ubuntu Reference Doc

Sample Commands:
ifconfig -a | grep eth
sudo lshw -class network
ifconfig eth4
sudo ifconfig eth0 down
sudo ifconfig eth0 up

Control which interface receives a particular logical name e.g. ETH0
sudo nano /etc/udev/rules.d/70-persistent-net.rules
sudo gedit/etc/udev/rules.d/70-persistent-net.rules
!Remove and Reboot
sudo rm /etc/udev/rules.d/70-persistent-net.rules

Ethernet Tool for Linux:
sudo apt-get install ethtool
sudo ethtool eth4
sudo ifup eth4
sudo ifdown eth4

TCMP Dump: (Link)
sudo apt-get install tcpdump
sudo tcpdump -i eth7
sudo tcpdump -A -i eth7
sudo tcpdump -XX -i eth7

Static IPs:
sudo nano /etc/network/interfaces
ifconfig eth0
ifconfig eth0 netmask
ifconfig eth0 broadcast
ifconfig eth0 netmask broadcast
ifconfig eth0 mtu 1000
ifconfig eth0 promisc
ifconfig eth0 -promisc

Manually Set MAC Address:
sudo ifconfig eth4 hw ether 00:04:fe:10:20:30

Restart Networking:
sudo /etc/init.d/networking restart


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s