Solved [Solved] Re-configuring NIC on existing FreeBSD installation

I have FreeBSD 10.0-STABLE installed on an SSD disk, which I have just connected to a ThinkPad X220 laptop, hoping everything would work ok. But it looks as though, whilst FreeBSD itself boots up, networking does not work. How do I reconfigure networking to use the ThinkPad's NIC rather than that on the computer it was originally installed on?
 
Re: Re-configuring NIC on existing FreeBSD installation

Look what interfaces you have with ifconfig(8), then edit /etc/rc.conf and modify the existing ifconfig_* line to use the correct interface.
 
Re: Re-configuring NIC on existing FreeBSD installation

ifconfig shows em0 and iwn0. When inserting a network cable the status on em0 changes from 'no carrier' to active. Do I just need to add lines
Code:
ifconfig_em0 |iwn0 ="DHCP"
to enable both devices? And does the system require a reboot to effect the change?
 
Re: Re-configuring NIC on existing FreeBSD installation

The iwn(4) interface is your wireless. That would need to be configured a little differently. But for the wired interface change it to:
Code:
ifconfig_em0="DHCP"

No need to reboot, a dhclient em0 should work. As would service netif restart and service routing restart.
 
Back
Top