![]() |
|
|||||||
| FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Guys is there a way of activating and deactivating Ethernet card on freebsd from command prompt. Actually I need to test something for which I need to activate and deactivate Ethernet link again and again. So I'll be writing a script for that but first I need to know how to do this from command prompt.
|
|
|||
|
Yes, most definately.
Bring the interface down: % ifconfig xx0 downBring it up: % ifconfig xx0 upPretty basic stuff, could have learnt this by reading the man page.. ![]() Quote:
|
|
|||
|
you may also want to restart your entire network config
try typing : /etc/netstart
|
|
|||
|
Quote:
Thanks to all for the tips. I'll note it down for future refrence. |
|
||||
|
Quote:
Quote:
|
|
||||
|
If you have a problem with the routing tables after shutting down the nic with e.g. ifconfig *nic* down
try ifconfig *nic* -alias (or delete) The manpage describes the deletion of the aliases but that's not only for aliases. Just in case you have a problem after shutting down one nic and activating another nic. |
|
||||
|
Quote:
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
|
Something related to my work. Needed to test how efficient the algorithm is in determining the length of the Ethernet cable for one of our products.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Broadcom BCM5906M 10/100 Ethernet Driver? | revzalot | Solaris | 0 | 15th June 2009 05:47 PM |
| Ethernet UP clobbers PPP | IdOp | NetBSD General | 1 | 9th March 2009 04:03 PM |
| My D-Link DFE530TX ethernet adapter isnt found. Help! | Quaxo | OpenBSD Installation and Upgrading | 15 | 9th February 2009 11:23 PM |
| broadcom ethernet | jaideep_jdof | NetBSD General | 0 | 16th November 2008 04:33 PM |
| Installing software without Ethernet Card | welkin | FreeBSD Ports and Packages | 2 | 27th July 2008 12:12 AM |