jabster
09-06-2003, 07:50 PM
Hi,
I want knoppix to boot to a console, then use it for my gateway/firewall/router.
I wrote a little script to configure eth0 and eth1 and start shorewall:
ifconfig eth1 192.168.1.1 up
ifconfig eth0 66.666.66.666 broadcast 66.666.66.255 netmask 255.255.255.0 up
route add -net 66.666.66.0 netmask 255.255.255.0 dev eth0
route add default gw 66.666.66.1 netmask 0.0.0.0 dev eth0
#set /etc/default/shorewall to "1"
cp /mnt/floppy/shorewall /etc/default/shorewall
mount --bind /mnt/floppy/shore /etc/shorewall
shorewall start
Here's my problem: After a certain amount of time, knoppix decides to look for a DHCP server (which I have) and get an IP address from there for eth1 (local). This, of course, completely ruins it's effectiveness as a router for my LAN.
How do I prevent it from looking for a DHCP server and getting a new local IP address. The external side (eth0) seems to be ok, since I have a static IP from my ISP.
can someone tell me what I'm not doing here?
Thanks,
john
I want knoppix to boot to a console, then use it for my gateway/firewall/router.
I wrote a little script to configure eth0 and eth1 and start shorewall:
ifconfig eth1 192.168.1.1 up
ifconfig eth0 66.666.66.666 broadcast 66.666.66.255 netmask 255.255.255.0 up
route add -net 66.666.66.0 netmask 255.255.255.0 dev eth0
route add default gw 66.666.66.1 netmask 0.0.0.0 dev eth0
#set /etc/default/shorewall to "1"
cp /mnt/floppy/shorewall /etc/default/shorewall
mount --bind /mnt/floppy/shore /etc/shorewall
shorewall start
Here's my problem: After a certain amount of time, knoppix decides to look for a DHCP server (which I have) and get an IP address from there for eth1 (local). This, of course, completely ruins it's effectiveness as a router for my LAN.
How do I prevent it from looking for a DHCP server and getting a new local IP address. The external side (eth0) seems to be ok, since I have a static IP from my ISP.
can someone tell me what I'm not doing here?
Thanks,
john