PDA

View Full Version : [ubuntu] Setting A Static IP



TetraKill
May 2nd, 2011, 01:03 AM
I've been looking online for a while now, and I haven't been able to find out how to do it. I have a Belkin f5d8635-4v1 modem/router, so I am connecting wirelessly. I am on 10.10 at the moment.
Thanks.

poolet
May 2nd, 2011, 01:24 AM
sudo su
"your password"

ifconfig "interface" down
ifconfig "interface" "IP_address" netmask "netmask" up
route add default gw "gateway_address"

TetraKill
May 2nd, 2011, 01:48 AM
What is the "interface"?

Iowan
May 2nd, 2011, 01:51 AM
What is the "interface"?

"Ordinarily" a wireless card would be wlan0 - but my laptop calls it eth1. From a terminal (Applications>Accessories>Terminal), ifconfig -a should show what interfaces are available.

TetraKill
May 2nd, 2011, 01:55 AM
Oh, thanks, I'll try it now.

EDIT: Thanks again, working now.

Iowan
May 2nd, 2011, 02:37 AM
[SOLVED] (https://wiki.ubuntu.com/UnansweredPostsTeam/SolvedThreads)? :D