static ip address

Ask questions about Arch Linux ARM. Please search before making a new topic.

static ip address

Postby chadr » Fri Aug 05, 2011 9:48 pm

I just set up the pogo yesterday, but didn't have success with setting the static ip in rc.conf

#
# Static IP example
interface=eth0
address=192.168.1.150
netmask=255.255.255.0
gateway=192.168.1.1

this doesn't work for me, so I had to reboot with the usb connected and edit the file back to dhcp. What else is needed to make static ip work?

I can always try setting something in the boot script, but I'm wondering why it doesn't work as shown in the rc.conf and the wiki.

Chad
chadr
 
Posts: 24
Joined: Mon Aug 01, 2011 10:08 pm

Re: static ip address

Postby pepedog » Fri Aug 05, 2011 10:34 pm

What happens if you leave out the gateway and put in a dns entry?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: static ip address

Postby chadr » Fri Aug 05, 2011 11:25 pm

Well, pogo would not boot and start the ip address. Why would dns come into play yet?
chadr
 
Posts: 24
Joined: Mon Aug 01, 2011 10:08 pm

[RESOLVED] static ip address info in wiki and rc.conf incor

Postby chadr » Sat Aug 06, 2011 2:10 pm

the wiki and rc.conf example are incorrect. It should be like this... works fine now.

# Static IP example
interface=eth0
address=192.168.1.150
netmask=24
gateway=192.168.1.1
chadr
 
Posts: 24
Joined: Mon Aug 01, 2011 10:08 pm

Re: static ip address

Postby k3vmcd » Sat Nov 19, 2011 9:33 pm

I finally got mine to work by adding my preferred DNS servers to the /etc/resolv.conf file.

To do this edit /etc/resolv.conf
$this->bbcode_second_pass_code('', 'nano /etc/resolv.conf')

Add your DNS servers to the bottom of the file. For OpenDNS nameservers add:
nameserver 208.67.222.222
nameserver 208.67.220.220

Exit by pressing "Ctrl+X" and saving the file by answering "y" then pressing "Enter"
k3vmcd
 
Posts: 1
Joined: Sat Nov 19, 2011 9:22 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 17 guests

cron