how to configure temporary IP and Gateway on Linux

Temporary IP:
ifconfig ethx [temp_IP_Address] netmask 255.255.255.0 up

you can use the ifconfig command to check if the temporary IP is configured correctly.

Temporary gateway:
route add default gw [temp_Gateway]

You can use route command to check if the temporary gateway is configured correctly.
These temporary configurations will disappear once you restart your network.

Advertisements
This entry was posted in Linux Admin Basics, Linux Tips. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s