Byta IP

Felipe Garcia felipe at garcia-lind.com
Wed Dec 21 13:52:39 CET 2005


nikke at headdown.net wrote:

and route delete/add default..... on the console.

ifconfig (nic) new-ip netmask new-netmask

where nic=networks interface device name. eg xl0 fxp0 etc

route delete default
route add default (new default route)

edit /etc/rc.conf
e.g.
ifconfig_xl0="inet XXX.XXX.XXX.XXX netmask 255.255.255.0 media 100basetx"
and
defaultrouter="YYY.YYY.YYY.YYY"

dont forget your /resolv.conf maybe...

/f

>Tjena
>
>Jag kör FreeBSD
>
>Hur gör man för att byta IP adress och gateway
>utan att starta om burken ?
>
>/ niclas
>
>_______________________________________________
>BUS mailing list
>BUS at stacken.kth.se
>https://lists.stacken.kth.se/mailman/listinfo/bus
>
>  
>



More information about the BUS mailing list