LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-11-2016, 04:34 AM   #1
itdungpt
LQ Newbie
 
Registered: Feb 2012
Posts: 20

Rep: Reputation: Disabled
how to change and edit network interface


my network config:

route -n
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
xxx.84.182.0 0.0.0.0 255.255.255.192 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
0.0.0.0 xxx.84.182.10 0.0.0.0 UG 0 0 0 eth0
# ip route list
Quote:
115.84.182.0/26 dev eth0 proto kernel scope link src 115.84.182.10
169.254.0.0/16 dev eth0 scope link metric 1002
default via xxx.84.182.10 dev eth0


i want change to:


Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
xxx.84.182.10 0.0.0.0 255.255.255.255 UH 0 0 0 lo
xxx.84.182.0 0.0.0.0 255.255.255.192 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
0.0.0.0 xxx.84.182.62 0.0.0.0 UG 0 0 0 eth0
Quote:
xxx.84.182.10 dev lo scope link
xxx.84.182.0/26 dev eth0 proto kernel scope link src xxx.84.182.10
169.254.0.0/16 dev eth0 scope link metric 1002
default via 115.84.182.62 dev eth0

can tell me command to make this
thanks all

Last edited by itdungpt; 06-11-2016 at 09:57 AM.
 
Old 06-11-2016, 09:21 AM   #2
itdungpt
LQ Newbie
 
Registered: Feb 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
please help
 
Old 06-11-2016, 09:28 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by itdungpt View Post
please help
Right now you are doing everything not to get help.

0. Your post is ugly, no code tags, all lowercase, sloppy! Who wants to respond to sloppy posts? It has been proven not rewarding.
1. You have chosen not to reveal what distro you are using. My personal crystal ball is broken, can't tell what you have there.
2. You replied to your own post, kicking it out from zero-reply pool.
 
1 members found this post helpful.
Old 06-11-2016, 11:30 PM   #4
itdungpt
LQ Newbie
 
Registered: Feb 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Right now you are doing everything not to get help.

0. Your post is ugly, no code tags, all lowercase, sloppy! Who wants to respond to sloppy posts? It has been proven not rewarding.
1. You have chosen not to reveal what distro you are using. My personal crystal ball is broken, can't tell what you have there.
2. You replied to your own post, kicking it out from zero-reply pool.
Thanks sir
 
Old 06-13-2016, 12:06 AM   #5
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 713

Rep: Reputation: 216Reputation: 216Reputation: 216
Take a look at 'ip route help', specifically the parts about add, del, replace. There are probably some "ip route replace default" examples available via the search engines, if you need help getting the exact syntax correct. Just replace their numbers with yours.
 
Old 06-13-2016, 11:42 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,481

Rep: Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838
Not a networking expert by any means...

What distribution/version are you running?

Why do you need to change the loopback adapter address to the same address as eth0. As far as I know the loopback route is implicit i.e. automatically added.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to change a network interface name on CentOS 7 LXer Syndicated Linux News 0 09-21-2014 10:21 AM
How to change eth1 address from /etc/network/interface? venom4u31 Linux - Newbie 7 11-28-2011 10:02 AM
[SOLVED] slackware 13.37 problem, udev change network interface randomly, wicd hottdogg Slackware 3 07-16-2011 01:06 AM
How NET_TX_SOFTIRQ select network interface when multiple interface exits Mr.J Linux - Kernel 0 06-02-2009 12:17 PM
LXer: How to Change MTU (Maximum Transmission Unit) of network interface in Ubuntu Li LXer Syndicated Linux News 0 08-16-2008 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration