Skip to content

Tag Archives: network

Ubuntu /etc/network/interfaces DHCP setup

02-Nov-09

Ubuntu /etc/network/interfaces DHCP setup To setup eth0 to dhcp in /etc/network/interfaces auto eth0 iface eth0 inet dhcp

/etc/network/interfaces Ubuntu Static Network setup

02-Nov-09

/etc/network/interfaces Ubuntu Static Network setup Following example setup eth0 with 192.168.1.1 IP address and gateway (router) to 192.168.1.2 iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.2 With IPtables auto eth0 iface eth0 inet dhcp pre-up iptables-restore < /etc/iptables.rules post-down iptables-restore < /etc/iptables.downrules Another Example – auto lo iface lo inet loopback auto eth1 [...]

ubuntu network setup and configuration

01-Nov-09

To configure your Ethernet device with a static IP address and custom configuration, some more information will be required. Suppose you want to assign the IP address 192.168.0.2 to the device eth1, with the typical netmask of 255.255.255.0. Your default gateway’s IP address is 192.168.0.1. You would enter something like this into /etc/network/interfaces: iface eth1 [...]

tshark dump and analyze network traffic

01-Nov-09

tshark – Dump and analyze network traffic # tshark -n -i ppp0 port 80 Running as user “root” and group “root”. This could be dangerous. Capturing on ppp0 -n Disable network object name resolution (such as hostname, TCP and UDP port names), the -N flag might override this one. -i [capture interface] TShark is a [...]