Pages

Thursday, December 16, 2010

How to configure dynamic routing

Dynamic routing indentifies other network destinations that are not connected directly but are reachable through a router. System that implement dynamic routing will become router which can forward or broadcast datagrams between network. In Solaris dynamic routing is implemented by in.routed daemon. This in.routed daemon cause a system to broadcast its own routing information to the networks. To enable dynamic routing you can use routeadm command. Below is tips to work with routeadm command.

  1. View current dynamis routing configuration
    root@solaris-sunray # routeadm
    Configuration Current Current
    Option Configuration System State
    ---------------------------------------------------------------
    IPv4 routing disabled disabled
    IPv6 routing disabled disabled
    IPv4 forwarding disabled disabled
    IPv6 forwarding disabled disabled
    ...
  2. Start in.routed daemon
    root@solaris-sunray # routeadm -u -e ipv4-routing
    root@solaris-sunray # routeadm
    Configuration Current Current
    Option Configuration System State
    ---------------------------------------------------------------
    IPv4 routing enabled enabled
    IPv6 routing disabled disabled
    IPv4 forwarding disabled disabled
    IPv6 forwarding disabled disabled
    ...
    root@solaris-sunray # pgrep in.routed 9469
  3. Start system to forward packet
    root@solaris-sunray # routeadm -u -e ipv4-forwarding
    root@solaris-sunray # routeadm
    Configuration Current Current
    Option Configuration System State
    ---------------------------------------------------------------
    IPv4 routing enabled enabled
    IPv6 routing disabled disabled
    IPv4 forwarding enabled enabled
    IPv6 forwarding disabled disabled

No comments:

Post a Comment