LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 10-03-2012, 12:09 AM   #1
ghoshdastidar1980
LQ Newbie
 
Registered: Mar 2010
Posts: 8

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.

Regards,
Ani
Attached Files
File Type: txt xx.txt (2.6 KB, 2 views)
 
Old 10-03-2012, 12:35 AM   #2
torchnw
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
Code:
# ifconfig bondeth4 down
# ifconfig bondeth4 up
 
Old 10-03-2012, 01:22 AM   #3
ghoshdastidar1980
LQ Newbie
 
Registered: Mar 2010
Posts: 8

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-10.217.49.23 Mask:255.255.240.0 Gateway i am not able to find ?

Requirement
bondeth4-10.217.202.18/24 gw 10.217.202.1

Action Plan:-
Ifconfig bondeth0 10.217.202.18 netmask 255.255.255.0 up.
vi /etc/sysconfig/network-scripts/ifcfg-bondeth4
IPADDR=10.217.202.18
NETMASK=255.255.255.0
GATEWAY=10.217.202.1
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 ..

Regards,
Ani
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 07:00 AM
Netmask resets to gateway address rcmonroig Linux - Newbie 3 10-13-2009 01:36 AM
Help to set up Linux Box As a network gateway pbhat Linux - Networking 3 05-17-2009 02:41 AM
setting gateway for network interface (newbie question) Arrowx7 Linux - Networking 1 03-04-2007 10:06 AM


All times are GMT -5. The time now is 11:12 AM.

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