UNIX IP Commands




Display Current Config for all NIC's: ifconfig

Display Current Config for dc0: ifconfig dc0

Assign multiple IP's: ifconfig dc0:0 192.168.1.2

Assign second IP: ifconfig dc0:1 192.168.1.3

Disable network card: ifconfig dc0 down

Enable network card: ifconfig dc0 up

Assign IP/Subnet: ifconfig dc0 inet 192.168.1.2 netmask 255.255.255.0

Assign Gateway: route delete default && route add default 192.168.1.1

*You MUST be at the ROOT user to make/save any changes. You will need to save your changes in the /etc/rc.conf file. Network cards are referred to as dc0, dc1, dc2, etc based on their position on the PCI bus.
*Special thanks to Romanov Sergey Vladimirovich from Moscow for the UNIX commands!
Recent Forum Posts

Top 10 Free VPN
VPN Services Keep in mind WIMI is NOT recommending any of these....simply providing links. Security Kiss...
Palo Alto Networks PA-500
At the end of 2009, my employer was facing the reality not just that we were emerging into the view of hackers, but that our clients were starting to...
Howdy
Very nice forum here. Clean lines, minimum of advertising gook. I'm currently on a self-made, self-education course on anonymous web browsing,...
Which IP Do I Actually Use?
I'm trying to set up my router in order to use Bit Torrent, but ever since I reset my router (just turned it off and on), it has been a problem. In...
hi
i want to track someone. I asked the kinda questions available here, on general forums and someone there guided me to the bad world of a hacking...
DYNAMIC
I have a dynamic ip but it never seems to change...oh i cant use the method stated before because its assigned by a router....its hooked up through a...
Hellos..
hello everyone. I am Hana. I came here to learn how to browse anonymously.;) Also I like being part of forums. take care all. :)

GoToMyPC - Access Your PC from Anywhere