Summary: Getting a machine to route without reboot

From: Andreas Höschler (ahoesch_at_smartsoft.de)
Date: 11/07/05

  • Next message: Sun User: "13w Adapter and LCD"
    Date: Mon, 7 Nov 2005 15:59:52 +0100
    To: sunmanagers@sunmanagers.org
    
    

    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


  • Next message: Sun User: "13w Adapter and LCD"

    Relevant Pages

    • Re: Had two of the same IPs, how do I clear the damage?
      ... Is it possible that its routing tables are messed up? ... > line, there is an option to make the route change perminant, ... I was hoping a reboot would work, ...
      (microsoft.public.windowsxp.network_web)
    • Re: Had two of the same IPs, how do I clear the damage?
      ... Is it possible that its routing tables are messed up? ... > line, there is an option to make the route change perminant, otherwise ... > after a reboot - the additions to the table are lost, ...
      (microsoft.public.windowsxp.network_web)
    • Re: firewall setup and routing
      ... I dont know how the reboot affected the setup but now ... all routing and IPTABLES functions work fine. ... > run tcpdump on the internal LAN to see what kind of traffic is being ... > generated when a local user tries to connect to the remote VPN site. ...
      (comp.os.linux.networking)
    • Re: changing ethernet devices, new one stops cold at iptables
      ... No need to reboot it. ... Scott root # ip neigh flush help ... >>Have you verified that the routing got correctly set up on the new ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: firewall setup and routing
      ... I dont know how the reboot affected the setup but now ... > all routing and IPTABLES functions work fine. ... is you failed to clear the arp/route caches (especially the route ... flush the route cache. ...
      (comp.os.linux.networking)