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

Introducing myself
Hello. I was at one time a Cisco Certified Network Instructor levels 1 and 2. I was system admin for a small WAN (network spanning cities) and...
Introducing Myself
Although my official title is "Systems Software Programmer", my actual job is quite different. I work for a major North American University in...
Question about my IP and a gaming issue I am having
I currently play a few MMORPGs and one of them, Perfect World, I have not logged into for a while. I have made no changes to my network or router and...
Static external ip
Hi all.. i am new and i want to learn how can i make my external ip not changing... PLEASE HELP SOON beacause i have a server at counter strike :)...
Badly Need help regarding dynamic IP...
hello to all. i just got my highspeed internet couple of days back & ive been trying to learn different things regarding ip configuration. my...

GoToMyPC - Access Your PC from Anywhere