I use Ubuntu, and I have many interfaces.
I have only One dhcp server which has only one interface with ip address 10.0.0.1/24.
I set-up my ubuntu-server 11.10 out of the box and changed the interfaces settings to
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
However, I kept getting Write failed: Broken pipe issues.
I want to configure my eth0 interface using an external DHCP server (resident in my subnet), so I edited /etc/network/configure with the lines
auto eth0
iface eth0 inet dhcp
but I also want to use avahi autoconfiguration when the DHCP server is down.
So I tried ifup eth0 when the server is down, and after a certain amount of time it fails, but the interface eth0:avahi is correctly configured
I have been trying to configure the isc-dhcp-server package to assign ip addresses to devices connected to my eth1 adapter.
Current Configuration
interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.2.1
network 192.168.2.0
netmask 255.255.255.0
broadcast 192.168.2.255
dhcpd.conf:
ddns-update-style none;
subnet 192.168.2.0
Possible Duplicate:
How do I dynamically obtain IP addresses for VLAN interfaces?
I have an Ubuntu Server 10.04.1 that I have given a static IP address. Every six hours or so I will lose connectivity to it and when I type ifconfig to look at the network information, it has been given an address via dhcp. If I run the /etc/init.d/networking restart command the IP address goes back to my static address and things are fine for another 6 hours or so.
I hate to make my first post to this forum an obvious admission of stupidity on my part, but if the post helps others, then it was all worth it.
I installed a clean version of Ubuntu Server 12.04.1 LTS on a new computer. Installation went normally.
I just did a recent install of Ubuntu Server 12.10 (no GUI, command line only) on a new system. I noticed that upon booting the server does not obtain an IP address from my router. However, once I log into the machine locally the server shows up on my list of DCHP clients and I can connect remotely without issue.