LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-18-2016, 01:47 AM   #1
drpaudel
LQ Newbie
 
Registered: Mar 2008
Posts: 15

Rep: Reputation: 0
Ping goes down after enabling eth1


My Scenario, I am using Centos7.2.
in eth0: 000.000.253.91 (I am using Public IP, sorry I am replacing first 2 block with 0s for security reasons)
in eth1: 192.168.1.179

When I make eth1 is down, only public network work fine. But when I enable eth1, ping stops. After ssh remotely, it again starts. for eth1 I have no gateway and dns. Used Ips are not used anywhere.
What could be the issue.

Here is eth0
Quote:
TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="eth0"
UUID="9feadbbc-8f37-4df4-a67e-81d727e82094"
DEVICE="eth0"
ONBOOT="yes"
DNS1="000.000.000.38"
DNS2="000.000.000.38"
IPADDR="000.000.253.91"
PREFIX="29"
GATEWAY="000.000.253.89"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"
Here is eth1
Quote:
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=eth1
UUID=0e66387c-5431-4a61-84f5-a0fcad210719
DEVICE=eth1
ONBOOT=yes
IPADDR=192.168.1.169
PREFIX=24
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
 
Old 07-18-2016, 07:07 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
When it fails check the routing tables (route -n) and make sure the default gateway hasn't been removed (or switched to eth1). I think it has been, and since eth1 doesn't have a gateway, the pings quit.

Remove/comment out the line "DEFROUTE=yes"

To recover, just take eth0 and eth1 down and bring up eth0, Verify that the default route is working.

then bring up eth1 up and see that the default route is still correct.

Last edited by jpollard; 07-18-2016 at 07:09 AM.
 
  


Reply

Tags
centos7, interfaces, ip, network connectivity



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
[SOLVED] How to ping from ETH0 to ETH1? cquick197 Linux - General 5 05-22-2014 08:39 AM
is this legal: can still ping eth1 through eth0, even if eth1 cable is unplugged 5883 Linux - Networking 2 12-05-2012 03:55 AM
Ping does not work between eth0 and eth1 Colin123 Linux - Networking 1 09-28-2005 01:10 PM
ethernet bridge (wlan0 eth1) - canīt ping magicien Linux - Wireless Networking 0 07-05-2004 03:59 AM
Two NICs card, but only can ping to eth1 myohtutoo Linux - Newbie 2 04-05-2004 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 PM.

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