You are not logged in.

#1 2009-09-07 21:03:43

siddharthchandra
Member
Registered: 2009-09-07
Posts: 1

Network Configuration

I am an archlinux newbie and am wanting to configure my Internet Connection. I am behind a proxy with username and password.
Usually, through a GUI based IP configuration utility, I enter the following:

IP: 172.31.145.31
NETMASK: 255.255.0.0
Default Gateway: 172.31.100.29

This is all I need to do in other distros. But in archlinux this doesn't seem to work.

This is what I have done so far:
#ifconfig eth0 172.31.145.31 netmask 255.255.0.0 broadcast 172.31.255.255

#route add default gw 172.31.100.29

after this when I do #ping www.google.com I get something like this
from 172.31.144.1 google(some IP) : Destination no reachable.

What can I do to rectify this problem. Please help.

Offline

#2 2009-09-07 22:03:46

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: Network Configuration

You need to add 'up' at the end of ifconfig to bring the interface online:

ifconfig eth0 172.31.145.31 netmask 255.255.0.0 broadcast 172.31.255.255 up

Also check http://wiki.archlinux.org/index.php/Rc.conf for how to set this up at boot time, eg:

eth0="eth0 172.31.145.31 netmask 255.255.0.0 broadcast 172.31.255.255"
INTERFACES=(eth0)
gateway="default gw 172.31.100.29"
ROUTES=(gateway)

Last edited by neddie_seagoon (2009-09-07 22:10:19)

Offline

Board footer

Powered by FluxBB