You are not logged in.

#1 2008-08-03 16:02:22

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

Set gateway IP with ifconfig

I figured out how to set netmask and IP with ifconfig: ifconfig -a eth0 192.168.1.132 netmask 255.255.255.128 But how do I set the gateway IP with ifconfig?

Last edited by jordanwb (2008-08-03 16:10:00)

Offline

#2 2008-08-03 16:12:27

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Set gateway IP with ifconfig

"route add"

Offline

#3 2008-08-03 16:56:07

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

Re: Set gateway IP with ifconfig

So I put "route add -net 192.168.1.0 netmask 255.255.255.128 gw 192.168.1.129 dev eth0"

and I get "SIOCADDRT: No such process"

Last edited by jordanwb (2008-08-03 16:59:57)

Offline

#4 2008-08-03 16:58:20

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Set gateway IP with ifconfig

route add default gw 192.168.1.129

Last edited by wonder (2008-08-03 16:58:48)


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2008-08-03 17:00:55

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

Re: Set gateway IP with ifconfig

Thanks

Last edited by jordanwb (2008-08-03 17:07:39)

Offline

#6 2008-08-03 17:06:20

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Set gateway IP with ifconfig

after setting ip for eth0 do you do "ifconfig eth0 up" ?


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2008-08-03 17:08:12

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

Re: Set gateway IP with ifconfig

I forgot to re-set the IP for eth0 when I booted. It works now. Also is there a command that I could use to show the free space on a given partition?

Last edited by jordanwb (2008-08-03 17:11:48)

Offline

#8 2008-08-03 17:12:29

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Set gateway IP with ifconfig

df -h


Give what you have. To someone, it may be better than you dare to think.

Offline

#9 2008-08-03 17:15:24

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

Re: Set gateway IP with ifconfig

Thanks. Wow I've used 28% of my 2Gig flash drive. I hope xorg and kde will fit.

Offline

#10 2008-08-03 17:22:51

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Set gateway IP with ifconfig

You might have a look at FaunOS or Larch if you plan to run Arch on a usb stick.

Offline

#11 2008-08-03 17:27:11

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

Re: Set gateway IP with ifconfig

I already have Arch installed on my flash drive. I created a ext2 partition, flipped the bootable flag and ran the arch setup as normal. I'd rather start with the console and build up, installing what I want.

Offline

#12 2008-08-03 17:35:38

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Set gateway IP with ifconfig

The difference is that FaunOS/Larch uses squashfs and aufs, which has two advantages: compression (more software can fit on the drive) and writing to the filesystem only on the shutdown, when saving changes (limiting flash drive wear). You should be able to start with a minimal system with Larch anyway.

Of course, it's up to you what solution you prefer :-)

Offline

Board footer

Powered by FluxBB