Skip to content

Tag Archives: setup

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 [...]