Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-03-2012, 01:09 AM   #1
LQ Newbie
Registered: Mar 2010
Posts: 9

Rep: Reputation: 0
How to set ip, netmask,gateway for a network interface

1.i want yo change the ipaddress,subnetmask gateway of bondeth4.
Is it possible to make it online?
if yes what are those steps i have to follow.

2. if online not possible then whats steps i need to follow.

Attached Files
File Type: txt xx.txt (2.6 KB, 11 views)
Old 10-03-2012, 01:35 AM   #2
LQ Newbie
Registered: Jun 2008
Distribution: Ubuntu, Debian, Mint, Fedora, Arch
Posts: 23

Rep: Reputation: 4
You can change the IP config with ifconfig at runtime, but it won't be persistent, so look for the files /etc/sysconfig/network-interfaces/ifcfg-bondeth4 or /etc/init.d/network/interfaces, depending on your distro ( which you didn't specify ) and edit those. Then take the interface down and up again with
# ifconfig bondeth4 down
# ifconfig bondeth4 up
Old 10-03-2012, 02:22 AM   #3
LQ Newbie
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Hi torchnw,
Thank you.but i don't want to make it down. The below is my action plan. Please verigy & let me know your concern.

Current setting :-
bondeth4- Mask: Gateway i am not able to find ?

bondeth4- gw

Action Plan:-
Ifconfig bondeth0 netmask up.
vi /etc/sysconfig/network-scripts/ifcfg-bondeth4
Now what else require.Another thing, how i will add the gateway with this bondeth4. Because the new gw what i will mention in the ifcfg-bondeth4 will be effective when i will reboot the server or service network restart ..



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to show network interface card (NIC) info like IP, netmask tnght2001 Linux - General 1 06-23-2010 08:00 AM
Netmask resets to gateway address rcmonroig Linux - Newbie 3 10-13-2009 02:36 AM
Help to set up Linux Box As a network gateway pbhat Linux - Networking 3 05-17-2009 03:41 AM
setting gateway for network interface (newbie question) Arrowx7 Linux - Networking 1 03-04-2007 11:06 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration