Summary: Getting a machine to route without reboot

From: Andreas Höschler (ahoesch@smartsoft.de)
Date: Mon Nov 07 2005 - 09:59:52 EST


Dear managers,

thanks to michael.schneider@calispera.com.

Don't forget to call

> /usr/sbin/in.routed

after doing all the other mentioned modifications, otherwise routing
won't start working (without a reboot).

Regards,

   Andreas

Original question:
> I am setting up a new machine and have just performed the standard
> steps for setting up routing:
>
> rm /etc/defaultrouter
> route add default 212.222.154.113
>
> /usr/sbin/ndd -set /dev/ip ip_forwarding 1
>
> Destination Gateway Flags Ref Use Interface
> -------------------- -------------------- ----- ----- ------ ---------
> 212.222.154.112 212.222.154.116 U 1 3 bge2
> 192.168.128.0 192.168.128.1 U 1 2 bge1
> 192.168.1.0 192.168.1.201 U 1 2 bge0
> 224.0.0.0 192.168.1.201 U 1 0 bge0
> default 212.222.154.113 UG 1 37
> 127.0.0.1 127.0.0.1 UH 2 119 lo0
>
> I am almost sure routing will work after the next reboot with this
> script
>
> #!/bin/sh
> case "$1" in
>
> start)
> echo "Adding default route..."
> route add default 212.222.154.113
> /usr/sbin/ndd -set /dev/ip
>
> ip_forwarding 1
> ;;
>
> stop)
> echo "Removing default route..."
> route delete default
>
> 212.222.154.113
> ;;
>
> *)
> echo "Usage: $0 (start|stop)" >&2
> exit 1
> ;;
> esac
> exit 0
>
> in place and activated with ln -s /etc/init.d/defaultrouting
> /etc/rc2.d/S69defaultrouting. I am wondering whether I can get routing
> to work without rebooting the machine. Any ideas what I am missing?
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:35:01 EDT