En versiones anteriores de Solaris <8 y 9> para poder activar el soporte de router, debíamos -a parte de tener al menos dos interfaces de red- poner a <1> el valor de la propiedad <ip_forwarding> del módulo del kernel </dev/tcp> para ello, simplemente debíamos hacer
# ndd -set /dev/tcp ip_forwarding 1El valor <1> es para activar, y <0> para desactivarlo.
A partir de Solaris 10, esto ya no tiene efecto y debemos utilizar el comando <routeadm> para comprobar y activar el reenvío de paquetes -y protocolos de enrutado-
# routeadmPara activarlo podemos utilizar las opciones de <-e {propiedad}> o, el FMRI de SMF <svc:/network/ipv4-forwarding:default>, por ejemplo:
Configuration Current Current
Option Configuration System State
---------------------------------------------------------------
IPv4 routing disabled disabled
IPv6 routing disabled disabled
IPv4 forwarding disabled disabled
IPv6 forwarding disabled disabled
Routing services "route:default ripng:default"
Routing daemons:
STATE FMRI
disabled svc:/network/routing/route:default
disabled svc:/network/routing/rdisc:default
disabled svc:/network/routing/zebra:quagga
disabled svc:/network/routing/rip:quagga
disabled svc:/network/routing/ripng:default
disabled svc:/network/routing/ripng:quagga
disabled svc:/network/routing/ospf:quagga
disabled svc:/network/routing/ospf6:quagga
disabled svc:/network/routing/bgp:quagga
disabled svc:/network/routing/legacy-routing:ipv4
disabled svc:/network/routing/legacy-routing:ipv6
disabled svc:/network/routing/ndp:default
# routeadm -e ipv4-forwardingO utilizando <svcadm>
# svcadm enable ipv4-forwardingY podemos comprobar que está activado, utilizando <routeadm> o <svcs>
# routeadm
Configuration Current Current
Option Configuration System State
---------------------------------------------------------------
IPv4 routing disabled disabled
IPv6 routing disabled disabled
IPv4 forwarding enabled enabled
IPv6 forwarding disabled disabled
Routing services "route:default ripng:default"
Routing daemons:
STATE FMRI
disabled svc:/network/routing/route:default
disabled svc:/network/routing/rdisc:default
disabled svc:/network/routing/zebra:quagga
disabled svc:/network/routing/rip:quagga
disabled svc:/network/routing/ripng:default
disabled svc:/network/routing/ripng:quagga
disabled svc:/network/routing/ospf:quagga
disabled svc:/network/routing/ospf6:quagga
disabled svc:/network/routing/bgp:quagga
disabled svc:/network/routing/legacy-routing:ipv4
disabled svc:/network/routing/legacy-routing:ipv6
disabled svc:/network/routing/ndp:default
# svcs ipv4-forwarding
STATE STIME FMRI
online 22:12:10 svc:/network/ipv4-forwarding:default
Referencias
Heyyy no sabes cuannnnnntooo me has ayudado en mi nuevo trabajo!!! Gracias!!!
ResponderEliminarHola Mauricio,
ResponderEliminarLa verdad es que me alegra mucho haberte podido ayudar, y espero poder seguir ayudándote.
Urko,