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

Proxy IP
After reading your great article on hiding your IP for Safari, the question arises "where do I get a Proxy ID address from". I can't find on this...
dinomark6
Hello Everyone.... Brand new here do be gentle...:D Hoping to learn about IP's, how to change them, etc. Brand new at this stuff so please...
Help Me Change My IP
I need help changing my IP. I have my IP given to my by Cox through a router, so the steps on whatismyip don't work. However, I have been able to...
Change IP problems
Hey all, I have recently been trying to change my WAN address yet have received no results. I have tried switching off the modem and the router...
My ip address, computer info traced and displayed on Facebook?
I want to know how this individual was able to get the following information off of a comment I made on Facebook. Any help would be appreciated. ...
What is GRE tunnel and how it is different from Virtual Link in OSPF????
Hi all, I read a lot of times about GRE tunnels that is used in IP Network. But never understood why this Technology was made?? What is the thing...
Interesting Google search
Just for kicks, go to Google (http://www.google.com/webhp?complete=0) and search - do a barrel roll They must have some programmers with a lot of...