
I just googled and found: ifconfig eth0 <number provided> Is it as simple as just doing this?? If yes! do I need to undo this when I am finished?? John.
Hello all, I am trying to update my system and went to an internet cafe to use their network. However, they told me I need to add their ip address (Which they gave to me on a written note) I have never had to do this before and have no idea how to do it in Ubuntu. Will some one please help with this? Regards John
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

Yes. You may need to use sudo. I'm not sure if changing the IP in ubuntu requires root permissions... so... At the command line type... sudo ifconfig eth0 <number provided> You will be prompted for a password the first time you do it... enter your normal password. However, this will change your IP address, but it won't give you a new gatway... Let's assume you're using your laptop on ADSL at home using a common router... so, your ip address is currently 192.168.1.2 Your routers address is 192.168.1.1... So the gateway on your machine is 192.168.1.1 Type the following at the command line to see... sudo route Let's assume your cafe says to use 10.0.0.5 and that their router is 10.0.0.1 You next need to change your default gateway to be 10.0.0.1 and not 192.168.1.1 You use the route command to do this. I suggest the following... 1. tell us a bit more about the actual situation. How is your machine configured at present... at the command line type... sudo ifconfig then post us the output. at the command line type... sudo route then post us the output. Tell us what the ip address is that the cafe told you to use was. 2. have a quick read of the man pages for ifconfig and route. man ifconfig man route (You shouldn't need to use sudo, but if you get an error, then try sudo) HTH Cheers Don jaytee(a)clear.net.nz wrote:
I just googled and found: ifconfig eth0 <number provided> Is it as simple as just doing this??
If yes! do I need to undo this when I am finished?? John.
Hello all, I am trying to update my system and went to an internet cafe to use their network. However, they told me I need to add their ip address (Which they gave to me on a written note) I have never had to do this before and have no idea how to do it in Ubuntu. Will some one please help with this? Regards John
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
-- Don Gould www.thinkdesignprint.co.nz - www.tcn.bowenvale.co.nz - www.bowenvale.co.nz - www.hearingbooks.co.nz - SkypeMe: ThinkDesignPrint

Sorry, missed that bit... jaytee(a)clear.net.nz wrote:
If yes! do I need to undo this when I am finished??
If you're at home using a router you might be using dhcp to get the address automatically... If you're using dialup then you don't need to worry... If you're using a router with DHCP (do you know what that is? :)... then type at the command line sudo dhclient eth0 This call cause the program dhclient to ask your router for a new ip address for your eth0 card. DHCP also sets your gateway and dns settings automatically, so you don't need to worry about the other commands I talked about in my last post - route. HTH Cheers Don -- Don Gould www.thinkdesignprint.co.nz - www.tcn.bowenvale.co.nz - www.bowenvale.co.nz - www.hearingbooks.co.nz - SkypeMe: ThinkDesignPrint

On 7/30/06, jaytee(a)clear.net.nz <jaytee(a)clear.net.nz> wrote:
I just googled and found: ifconfig eth0 <number provided> Is it as simple as just doing this??
If yes! do I need to undo this when I am finished?? John.
Hello all, I am trying to update my system and went to an internet cafe to use their network. However, they told me I need to add their ip address (Which they gave to me on a written note) I have never had to do this before and have no idea how to do it in Ubuntu. Will some one please help with this? Regards John
There are simpler ways to do this on Ubuntu. I can't remember the exact menu location but on my Debian (which is similar) it is Places, Administration, Networking and you can do it all using the GUI with a minimum of fuss.
-- Ian McDonald Web: http://wand.net.nz/~iam4 Blog: http://imcdnzl.blogspot.com WAND Network Research Group Department of Computer Science University of Waikato New Zealand
participants (3)
-
Don Gould
-
Ian McDonald
-
jaytee@clear.net.nz