I am new to Ubuntu Server i just downloaded it and installed it... VERY EASY! only thing is i am not familar with any CLI commands. If someone could let me know what the command for setting a static address, subnet and gateway.
I am new to Ubuntu Server i just downloaded it and installed it... VERY EASY! only thing is i am not familar with any CLI commands. If someone could let me know what the command for setting a static address, subnet and gateway.
You can try this, it works in 6.0.6
vi /etc/network/interfaces
See This Link For the layout
http://howtoforge.com/perfect_setup_ubuntu_6.06_p3
VI Is tricky at first - Print this for your reference!
http://www.digilife.be/quickreferences/QRC/Vi%20Reference%20Card.pdf
you could add the network information on the file /etc/network/interfaces, in that way everytime your system boots it will configure your network adapter automatically
in cli commands, you can use ifconfig or ip
ip belongs to the package named iproute (it's awesome)
for more info about them, check
man ifconfig
man ip
ok i guess i am having one of those days.... i guess i am going to need a hand holding session. i have checked out both your options, i ran into the ID10T error so i am having a Brain fart. dumb down for me today it has been a ruff day in the world of windows...
if someone could just break it down into setups it would be greatly appreciated.
Assuming you know how to use vi editior(If you don't you should probably be using ubuntu desktop edition):
1. sudo vi /etc/network/interfaces
2. in that file is something that might look like this:
change dhcp to be static:Code:iface eth0 inet dhcp
and include underneath it:Code:iface eth0 inet static
save and quit viCode:address 192.168.0.100 (what you want your static ip to be) netmask 255.255.255.0 (is normal, just need to copy) broadcast 192.168.0.255 (copy) gateway 192.168.0.1 (whatever your routers ip address is)
3. sudo /etc/init.d/networking restart
and it should now be whatever ip address you put in the 'address' section.
could i add that i have been administrating linux and BSD boxes for about 5 years on the CLI and i don't know how to use vi either (tought it was VIM actually) i personally use nano /etc/network/interfaces wich is a lot easier and does the job well.
all the rest this guy told you is perfect
you could also see the applied settings with the command
Code:ifconfig
you could do it with commands as well.
something like so:
Code:ifconfig eth0 192.168.0.100 netmask 255.255.255.0 up ifconfig eth0
but everytime you start your computer it actually reads the file in /etc/network/interfaces so you would have to do it again everytime.
a nice place to start is here https://help.ubuntu.com/8.04/serverguide/C/index.html
thanks the nano is better for me, when i try to save the file i get an error witing /ect/network/interfaces: No such file or directory. i know i am doing something wrong. thanks for the help guys.
nano /etc/network/interfaces
mind the etc
Bookmarks