Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ping question -- resolved
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Aug 10, 2012 10:52 pm    Post subject: ping question -- resolved Reply with quote

In trying to track down a problem with 192.168.1.1, I finally disconnected the cable to the interface on eth2. Ping 192.168.1.1 still responds. From where I have no idea, but suspect if I get it not to respond with the cable unplugged, then maybe it would work with the cable plugged in. Any ideas for what might have caused this? Thanks,
Fred


Last edited by Fred Krogh on Sat Aug 11, 2012 1:35 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Fri Aug 10, 2012 11:22 pm    Post subject: Reply with quote

Since you have an eth2 it implies you probably have more than one network connection...Is this the case?

When you run "/sbin/ifconfig" or "/sbin/ip addr" are any of your network interfaces hardcoded to the ip address? You'll definitely want to get rid of any hardcoded interfaces unless you meant to do it, and if you did - make sure it doesn't match other devices on the network.

How are you configuring your network interfaces? Was this a fresh build?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Aug 10, 2012 11:33 pm    Post subject: Reply with quote

I don't understand what you mean by "hardcoded". The addresses are specified in /etc/conf.d/net. And doing a global grep in etc, I don't find any 191.168.1.1 except where I put it in /etc/conf.d/net. If I delete it there the ping gives no response, but then the interface doesn't come up properly either. "ip addr" gives
Quote:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:e0:4c:68:e4:0c brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:e0:4c:68:e5:12 brd ff:ff:ff:ff:ff:ff
4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:e0:4c:68:e4:0d brd ff:ff:ff:ff:ff:ff
5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:e0:4c:68:e5:11 brd ff:ff:ff:ff:ff:ff
6: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether f4:6d:04:d6:7d:15 brd ff:ff:ff:ff:ff:ff

I have no idea where the eth3, and eth4 come from, although there are two more ethernet intefaces in the hardware.
I hope this answers your questions. Thanks.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Sat Aug 11, 2012 1:27 am    Post subject: Reply with quote

Are you expecting to use DHCP? You shouldn't need an /etc/conf.d/net if you want to use DHCP.

Since you probably set the up address of your ethernet card to 192.168.1.1 then you can always ping to 192.168.1.1 because that's your own address and it's always up. You need to specify some other ip address for your computer (or use DHCP to dynamically set one from your router/dhcp server.)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sat Aug 11, 2012 1:35 am    Post subject: Reply with quote

Many thanks, I was about to post this when I say your comment. That was too stupid for words, I still have a mystery, but it is something else.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sat Aug 11, 2012 1:36 am    Post subject: Reply with quote

Many thanks, I was about to post this when I say your comment. That was too stupid for words, I still have a mystery, but it is something else.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum