Starting/stopping a network interface
Olaf Hoyer
ohoyer at gaff.hhhr.ision.net
Sat Nov 1 12:10:55 PST 2003
On Sat, 1 Nov 2003, Roland Giesler wrote:
> The interface is up, but it still read 192.168.1.1 !! Although I've changed
> /etc/rc.conf the change doesn't seem to be effective. That's why I was
> wondering how to stop/start the interface so the change could be re-read (or
> am I thinking to much in a Windows fashion here?)
Hi!
Well, yes, the rc.conf only gets parsed during start-up.
You could basically execute the rc.network script, but preferred method
is to activate those things manually via ifconfig.
Respectively, first test with ifconfig, if it does what you want, and
then edit t rc.conf to make sure that after a reboot all stays the same.
You want to do:
ifconfig rlx 192.168.99.2 netmask 255.255.255.0
x= Number of card
the route shall be automatically set up.
BTW: This normally goes above the ordinary newbie-horizon, those caliber
is better suited on -questions...
HTH
Olaf
>
> -----Original Message-----
> From: Kevin Stevens [mailto:kevin_stevens at pursued-with.net]
> Sent: 01 November 2003 21:50
> To: Roland Giesler
> Cc: freebsd-newbies at freebsd.org
> Subject: Re: Starting/stopping a network interface
>
>
>
> On Nov 1, 2003, at 17:19, Roland Giesler wrote:
>
> > I've searched high and low, but can't find an answer to this problem.
> > Maybe someone could help or point me in the right direction? Here
> > goes:
> > I've got FreeBSD 4.7 set up with 2 netcards. One is 192.168.99.2 and
> > the other 195.15.176.2 and I've got routing between them enabled. I
> > cannot ping the 192.168.99.2 card even from the console. Put I can
> > browse the web from the machine (I've got X with KDE set up) and also
> > ping other machines on the network.
>
> Is the interface up? What does ifconfig -a say?
>
> KeS
>
>
> _______________________________________________
> freebsd-newbies at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
> To unsubscribe, send any mail to "freebsd-newbies-unsubscribe at freebsd.org"
>
--
Olaf Hoyer ohoyer at gaff.hhhr.ision.net
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)
More information about the freebsd-newbies
mailing list