No matter what I try whenever I restart my computer the ethernet connection resets to eth0 with default settings. What I want is to have it default to a static ip configuration.
No matter what I try whenever I restart my computer the ethernet connection resets to eth0 with default settings. What I want is to have it default to a static ip configuration.
I had to edit the /etc/network/interfaces file by hand (as root).
You can do:
in a teminal for all the details; I attached the examples that can be found in: /usr/share/doc/ifupdown/examples/network-interfaces.Code:man interfaces
The example:
sets up eth0 for a static ip (remember to remove the #'s in your actual file).Code:# An example ethernet card setup: (broadcast and gateway are optional) # # auto eth0 # iface eth0 inet static # address 192.168.0.42 # network 192.168.0.0 # netmask 255.255.255.0 # broadcast 192.168.0.255 # gateway 192.168.0.1
Last edited by ddnev45; February 22nd, 2009 at 04:41 AM.
The mark of an honest man ... is that he means what he says and knows what he means.
A.R.
Linux User #415691 Ubuntu User #8629
Iowa Team (LoCo): [Wiki] [Launchpad]
IRC channel: #ubuntu-us-ia on irc.freenode.net
I had to uninstall NetworkManager so that it didn't install and run at ALL the run-levels. Then I had to hook up the network script and have it installed at run-level 2,3 & 5. NetworkManager doesn't work at all for static IPs.
The gui interface also had trouble setting the network mask. It set mine to 255.255.255.255, which won't and didn't work. I had to hand edit the file in /etc/system/network_interface to 255.255.255.0.
I had to do the above for a dual Ethernet Linux firewall for both interfaces. I setup the Internet side Ethernet card to use "network" and to get a DHCP address from my providers servers.
Hope this helps. The NetworkManager is not ready for prime time. It needs a static option.
You not the only one w/ this problem. Maybe some clues here?
http://ubuntuforums.org/showthread.p...ight=kill+dhcp
lynnevan
Bookmarks