LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-13-2013, 11:48 PM   #1
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Rep: Reputation: 15
Leases IP but can't route


I have a fresh Wheezy install on my home network and have run into a strange problem. The system leases an IP from my pfSense firewall, which correctly sets its mask, gateway, and DNS entries, but I can't ping the gateway, other hosts, or the Internet at-large. I have several other devices connected to the same switch, on the same VLAN, and happily talking amongst each other and to the Internet. Where should I start digging in on this?
 
Old 09-14-2013, 02:26 AM   #2
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Rep: Reputation: 33
Are you sure it has leased an address? If it can get that far, then the port is live and can perform MAC broadcasts and recieve packets.

Anyway...First things to try:

Can you ping yourself: if not, the TCP/IP stack is not correctly configured and you need to look at /etc/network/interfaces as a start. Also, /var/log/syslog will probably have some hints about what is going on
If you can ping yourself, do an "ifconfig" on the offending system, and compare it to one thats working correctly. It should show an IP addresss, mask, etc and show "UP BROADCAST NOTRAILERS RUNNING". If that is not the case, it will give you some clues where to look....if it doesn't say "RUNNING", which is most likely, then networking has not been started properly.

And just to be complete...be sure the physical connectivity is good in BOTH Directions

If you do all this and still have problems, post up /etc/network/interfaces and the output of ifconfig and we can look at it some more
 
1 members found this post helpful.
Old 09-14-2013, 09:16 AM   #3
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Thanks for the feedback. Yes, I'm positive the lease is genuine because I can see it via the firewall as well as in the local syslog. For that matter, the firewall cannot ping this box either. However, the box itself can ping 127 as well as its DHCP assigned IP (10.0.10.114 in this case).

/etc/network/interfaces
Quote:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth1
iface eth1 inet dhcp
I actually threw in an old (working) 3COM card as well so you'll see this come in as eth1. This interface is an onboard Broadcom.

ifconfig
Quote:
eth1 Link encap:Ethernet HWaddr 00:13:72:06:e4:fd
inet addr:10.0.10.114 Bcast:10.0.10.255 Mask:255.255.255.0
inet6 addr: fe80::213:72ff:fe06:e4fd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18253 errors:0 dropped:0 overruns:0 frame:0
TX packets:3649 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1830118 (1.7 MiB) TX bytes:235618 (230.0 KiB)
Interrupt:17

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1257 errors:0 dropped:0 overruns:0 frame:0
TX packets:1257 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:416186 (406.4 KiB) TX bytes:416186 (406.4 KiB)
Physical media was also a thought so I swapped cables as well as tried a different port on the switch (and NIC). All gives the same behavior so I'm left thinking this is a firewall issue, but there's literally 1 rule on this network which allows access to everything (and other mixed-OS wired and wireless devices are good)!
 
Old 09-14-2013, 10:39 AM   #4
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
More info... I have the issue narrowed down to the switch I think. The other machines plugged in to it are 2 Windows and 1 AP. All work fine. I plugged in another linux (Mint) machine that's normally on wireless and it exhibited the same behavior. I'll take a close look at the switch config and see what's up. It's weird because VLAN tagging is obviously working since it's pulling an IP from the correct network, but once on it can't do a thing... and doubly so that the Windows boxes are just fine!
 
Old 09-14-2013, 11:17 AM   #5
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Solved! It boiled down to a VLAN issue that, for whatever reason, Windows didn't mind and linux did. I had the port configured to tag traffic on VLAN 10 and the PVID to VLAN 10 as well, but the correct configuration was to set it untagged on VLAN 10 with the same PVID. It's counter-intuitive terminology so I'll have to read up more on it, but it's working as expected now.
 
Old 09-15-2013, 03:11 PM   #6
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Rep: Reputation: 33
Interesting! What was the native VLAN (That is, which VLAN's traffic was sent untagged? that my be where the issue comes from.

Still, Thanks for letting us know!
 
Old 09-15-2013, 05:26 PM   #7
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
For this Netgear switch, they call the native VLAN the PVID (Port VLAN ID), so I effectively had the native VLAN set for 10. It was how I had joined the port to VLAN 10 group as Tagged, instead of Untagged, that it fell over once hitting the IP layer. Still seems counter-intuitive to me.
 
  


Reply

Tags
dhcp, routing



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
openvpn push route priority over existing route lievendp Linux - Networking 0 06-22-2012 07:52 AM
Route eth2 TCP packets to tun0 with IPTABLES & IP RULE/ROUTE Thireus Linux - Networking 4 05-09-2011 12:38 PM
Delete leases from dhcpd.leases when remove a subnet from dhcpd.conf phongnh Linux - Server 2 10-12-2010 04:49 AM
Wrote 0 leases to leases file - DHCP server lionel.rpm Linux - Server 3 07-22-2009 06:05 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:51 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