RyujiOtogi
February 21st, 2012, 07:00 AM
'Ello. I'm a helpless Linux noob in desperate need of some common sense here. :confused:
I'm running Ubuntu Server 11.10 x64 bit using VirtualBox on my Mac OS X Lion. I'm trying to change my DHCP to a Static IP address, so I typed sudo vi /etc/network/interfaces as an internet How-To instructed me. I've got two questions:
1) The How-To says to change "iface eth0 inet dhcp" to "iface eth0 inet static", which is easy enough. Then it says I've got to enter my address, netmask, network, broadcast, and gateway values. I can see what the address, netmask, and network values are in OS X Lion: System Preferences-->Internet & Wireless-->Network-->Advanced-->TCP/IP.
But I don't know what to enter for broadcast and gateway, if those are necessary. If I must, how I do find out those addresses? I suppose you may need have OS X to help me out here.
2) Ok, so this is what's really frustrating me. The How-To's I've been reading simply say to save and exit the network configuration settings in "sudo vi /etc/network/interfaces" discussed above, while moving on to the next step. Since Google hasn't helped (at all) in discovering HOW TO save or even exit 'sudo vi', I presume only the stupidest n00b on the face of the planet would have to ask. Well, that's me. I've hit the enter button after making the changes, hit ESC, tried sudo exit commands, and basically went crazy all over my keyboard in a vain and pitiful attempt just to exit the freakin' 'sudo vi' configurations. I've had to power off my virtual machine to reboot, and try again with just as much [un]success.
I've come here because no amount of Googling has helped me. So please Ubuntu community, if you could help get this n00b's face out of his butt you would make someone really happy. :P
I'm running Ubuntu Server 11.10 x64 bit using VirtualBox on my Mac OS X Lion. I'm trying to change my DHCP to a Static IP address, so I typed sudo vi /etc/network/interfaces as an internet How-To instructed me. I've got two questions:
1) The How-To says to change "iface eth0 inet dhcp" to "iface eth0 inet static", which is easy enough. Then it says I've got to enter my address, netmask, network, broadcast, and gateway values. I can see what the address, netmask, and network values are in OS X Lion: System Preferences-->Internet & Wireless-->Network-->Advanced-->TCP/IP.
But I don't know what to enter for broadcast and gateway, if those are necessary. If I must, how I do find out those addresses? I suppose you may need have OS X to help me out here.
2) Ok, so this is what's really frustrating me. The How-To's I've been reading simply say to save and exit the network configuration settings in "sudo vi /etc/network/interfaces" discussed above, while moving on to the next step. Since Google hasn't helped (at all) in discovering HOW TO save or even exit 'sudo vi', I presume only the stupidest n00b on the face of the planet would have to ask. Well, that's me. I've hit the enter button after making the changes, hit ESC, tried sudo exit commands, and basically went crazy all over my keyboard in a vain and pitiful attempt just to exit the freakin' 'sudo vi' configurations. I've had to power off my virtual machine to reboot, and try again with just as much [un]success.
I've come here because no amount of Googling has helped me. So please Ubuntu community, if you could help get this n00b's face out of his butt you would make someone really happy. :P