Skip to main content

Posts

Showing posts with the label command line

Manually Setting Up a Static IP in Ubuntu

For some reason, Webmin doesnt work well with Ubuntu 10.04. Everytime I configure a static IP using Webmin, it throws an error at boot. Ive reinstalled several times hoping that it was just a glitch. Maybe for some reason, there was a misconfiguration in the network modules in the source code perhaps. Anyway, getting around this, I decided to be a command line ninja once more. Logging in as root, edit the /etc/network/interfaces file an tweak as needed (I removed the last octet for security reasons, replaced with x and y). # The primary network interface auto eth0 iface eth0 inet static
 address 192.168.1.x gateway 192.168.1.y
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255 You could actually just copy some of the values when you're on DHCP by entering ifconfig -a as a sample, heres the data I got (I removed some values and replaced the last octet of the IP with x). eth0      Link encap:Ethernet  HWaddr -- removed --  ...