Subject: Routing trouble
To: None <netbsd-help@netbsd.org>
From: Florian Stoehr <netbsd@wolfnode.de>
List: netbsd-help
Date: 04/21/2005 16:44:14
Hi,
I have this network configuration with Linux Debian:
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE
IT.
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 217.20.118.121
netmask 255.255.255.0
up route add -net 217.20.117.0 netmask 255.255.255.0 dev eth0
up route add default gw 217.20.117.1
up mii-diag -A 100baseTx-FD
### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
Now, I have to move this to NetBSD.
What about route -net? As I think I cannot set the defaultroute with
"defaultroute=" in /etc/rc.conf, I added to /etc/rc.conf:
ifconfig_fxp0="inet 217.20.118.121 netmask 0xffffff00 up"
and to /etc/rc.local, I added:
route add -net 217.20.117.0 -interface 217.20.118.121
route add default 217.20.117.1
I cannot test this, as I have to install NetBSD into a qemu image and
"install" it on the target machine via "dd" :-(
On the test, this shows like "Cannot set default route - Network is
unreachable".
Are the route calls correct to achive what Linux does above?
Thanks
Florian