AW: [mu SETUP] Can't change to static IP after DHCP

From: Dirk Heilemann (dirk.heilemann@telindus.de)
Date: Fri Apr 12 2002 - 09:05:50 CEST


> >From: Dirk Heilemann <dirk.heilemann@telindus.de>
> >static IP -
> >no big deal you say.... but it's not working!
> # ifconfig eth0 1.2.3.4 bw 1.2.3.255 up
> # route add default eth0
>
What is that supposed to do?? You were in a hurry I presume, because none of
the commands make sense - sorry

1.) Did You mean:
ifconfig eth0 broadcast 10.16.197.255 up

- It didn't make a change. I said that in the original mail.

2.) The default GW is not the problem.
- When pinging my own interface I don't use routing. But anyway, in the
route table there is the explanation:

/root [root]# route

Kernel routing table
Destination Gateway Genmask Flags MSS Window Use
Iface
10.16.0.0 * 255.255.254.0 U 1500 0 0 eth0
loopback * 255.0.0.0 U 3584 0 2 lo

- (The local net is wrong - never seen that...)

/root [root]# route del 10.16.196.0
/root [root]# route add localnet eth0
/root [root]# route add default gw 10.16.196.1
/root [root]# route

Kernel routing table
Destination Gateway Genmask Flags MSS Window Use
Iface
localnet * 255.255.254.0 U 1500 0 3 eth0
loopback * 255.0.0.0 U 3584 0 4 lo
default 10.16.196.1 * UG 1500 0 0 eth0

This works fine now - but
- after a reboot everything is gone
- anyone els using "uneven" masks will have the same prob.

Regards

 Dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.dk
For additional commands, e-mail: mulinux-help@sunsite.dk



This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:21 CET