NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: changing default gateway via rc.d
On 8 August 2012 17:45, James K. Lowden <jklowden%schemamania.org@localhost>
wrote:
> If I change /etc/mygate, how can I make it take effect without
> rebooting?
>
> /etc/rc.d/NETWORKING restart
>
> doesn't do it.
>
> The man page for rc says under "NETWORKING"
>
> "Ensure basic network services are running, including general
> network configuration (network) and dhclient."
>
> but the string "network", which seems to be explanatory, is not defined
> on that page. Routing is a basic network service, and mygate is a
> general network configuration file, wouldn't you say?
>
> I know route(8) will do the trick. I get cold feet when putzing with
> routing, and I prefer to know the system is running per the
> configuration files, not ad hoc commands.
Does "/etc/rc.d/network restart" work?
% grep 'route.*default' /etc/rc.d/*
/etc/rc.d/network: /sbin/route add default $defaultroute
/etc/rc.d/network: /sbin/route add -inet6 default $defaultroute6
Home |
Main Index |
Thread Index |
Old Index