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

Problem with porf forwarding, help please
Hello, I've tried to forward my port. When I type 192,168,1,1 , nothing appears. Can somebody help me, please
Home network, multiple "routers"
I'm trying to tweak my home network, but something just isn't working properly. Here's what I'm trying to do: VPN router connected to ISP...
Connection drops to local after 1 second
I have posted this on many other sites to no avail hopefully somebody on here can help. Have looked at hundreds of posts cant find a fix, have...
Same IP through cable router
Hello to all members! I've been using whatismyip for quite some time now and it has never failed me. Recently I've switched over to...
Ping loopback
Let me explain the topology first. I have 2 routers directly connected named R1 and R2. Please see below for the config of the same. I have not...

GoToMyPC - Access Your PC from Anywhere