LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-05-2008, 08:03 PM   #1
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Rep: Reputation: 31
Routing or Gateway Problem


Hello all expert network administrator, i have an opnebsd 4.1 gateway/router.
This box has three interface which is external(rl0), internal(rl1) and wireless(ral0).
Before this my problem is my internal LAN cannot browse at all but after i have disabled the pppoe dialing in openbsd and enabled it at modem. My wireless connection works perfectly but my wired cannot browse but can login to MSN.
This is a weird problem. I did not manually configure t routing table. Below is my routing table :
Code:
Destination  Gateway     Flags      Refs     Use Mtu   Interface
default    192.168.1.1    UGS        13    570195 -     rl0
127/8     127.0.0.01      UGRS       0     0     33224   lo0
127.0.0.1   127.0.0.1     UH         3     33119  33224  lo0
176.16.10/24   link#2     UC         0      0       -    rl1
192.168.1/24   link#1     UC        1        0       -   rl0 
192.168.1.1   H.Address   UHLc       2      350     -    rl0
192.168.1.2   127.0.0.1  UGHS       0       0      33224 lo0
192.168.2/24  link#3       UC       1       0       -     ral0
192.168.2.4    H.Address  UHLc      1     11046     -    ral0
224/4        127.0.0.1     URS      0       0     33224  lo0
Network Structure:
Modem(PPPOE dialing) -> (rl0 Dynamic ip from ISP)OPenBSD->(rl1 and ral0) -> Desktop || Laptop
/etc/hostname.rl1 : inet 176.16.10.1 255.255.255.0 NONE
/etc/hostname.ral0 : inet 192.168.2.1 255.255.255.0 NONE
/etc/dhcpd.conf : authoriative; shared-network LOCAL-NET {
subnet 176.16.10.0 netmask 255.255.255.0 option routers 176.16.10.1; }

Wireless = subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1; }
I really need you all help. A billion thanks for your help.
Is is something realted to the shared-network LOCAL-NET or oruting problem ?

Last edited by acid_kewpie; 01-06-2008 at 08:40 AM.
 
Old 01-05-2008, 08:26 PM   #2
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
As far as i know after read up the man page, if you two subnetwork(LAN) in a same physical network, then u need to use shared-network. This is my understanding.
Moreover, if oyu have a DMZ(Web server) and a normal LAN but you only has one LAN NIC.
Therefore, u used ip alias in /etc/hostname.xxx and configure as shared-network. IS it correct ? Please correct me if i wrong.
MOdem- > Openbsd -> Web Server(DMZ)(192.168.2.0) && Desktop.(192.168.3.0)
A billion thanks for your help.
 
Old 01-06-2008, 06:03 AM   #3
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
I very need you all help. My MSN can login and can ping www.google.com.my but cannot browse.

I not idea why but i think it is related to routing issues ?

A billion thanks for your help.
 
Old 01-06-2008, 08:49 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, nothing looks out of the norm to me right now, may well be some sort of firewalling issue on the bsd box? not familiar with pf myself...

Have you looked at a tcpdump on the box to see traffic in and out of it? what about a traceroute from the client to see if anything interesting shows up there?
 
Old 01-08-2008, 12:38 AM   #5
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
I will try it after come back from institute.
 
Old 01-09-2008, 02:29 AM   #6
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
I have try tcpdump -ner /var/log/pflog but i didn't see any rules block wired browsing.
Although this issue seems weird, can u suggest how to set dhcpd.conf for two subnetwork.
My friends mentioned that two subnet cannot be the same and must be same class i try following.
/etc/hostname.rl1(Internal Interface) : inet 192.168.1.10 255.255.255.0 NONE
/etc/hostname.ral0(Wireless Interface) : inet 192.168.1.240 255.255.255.240 NONE
/etc/dhcpd.conf : subnet 192.168.1.10 netmask 255.255.255.0 {option routers 192.168.1.10; range 192.168.1.11 192.168.1.13; }
Wireless - subnet 192.168.1.240 netmask 255.255.255.240 options routers 192.168.1.240 range 192.168.1.241 192.168.1.243;
Error Message is : Range 192.168.1.11 192.168.13 is not in net 192.168.1.10 255.255.255.0.
Please help me. I really need your help.
/etc/hostname.rl0 : Dynamic by my ISP
My friends also mentioned that rl1 and ral0 must be same class. I odn't know this is true or not.
I really run out of idea.

Last edited by Peter_APIIT; 01-09-2008 at 02:56 AM.
 
Old 01-09-2008, 03:03 AM   #7
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
My rl0 is 192.168.1.1 and my friends said this willc crash with rl1 and ral0 because same subnet or what else.
Please help me.
 
Old 01-10-2008, 07:08 PM   #8
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
I have try what ever i know. Please help me. I really need you all help.
 
Old 01-11-2008, 02:10 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well the thing is you don't seem to be able to decide what the problem you actually have is.

is it 1) dhcpd not working or 2) routing within a valid IP addressed network not working as expected? you need to tell us what you're actually having problems with. my suggestion about tcpdumping will only be relevant for the latter, yet you've come back to the former...
 
Old 01-12-2008, 12:20 AM   #10
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
You are right, I truly don't know what is the problem.
I don't know the issues related to DHCPD or routing.

MY DHCPD no error messages when my wired and wireless can get ip address but cannot browse or online.

A billion thanks for your help.
 
Old 01-12-2008, 01:39 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ack... so you should know whether you can ping your default gateway or not surely? you should also bypass dhcp with a static ip address.

Last edited by acid_kewpie; 01-12-2008 at 01:44 AM.
 
Old 01-13-2008, 05:40 AM   #12
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
I can ping my gateway. What mean is it related to
host pc1 {
hardware ethernet adads;
fixed-addresses;
}
Is this u are talking about ?

By the way, this is my configuration.

Quote:
/etc/hostname.rl1 : inet 176.16.10.1 255.255.255.0 NONE
/etc/hostname.ral0 : inet 192.168.2.1 255.255.255.0 NONE

/etc/dhcpd.conf :

subnet 176.16.10.0 netmask 255.255.255.0 -- Wired
{
option routers 176.16.10.1;
range 176.16.10.10 176.16.10. 12;
}

subnet 192.168.2.0 netmask 255.255.255.0
{
option routers 192.168.2.1;
}

/etc/hostname.rl0 : connect to modem;

Initialized by dhclient.








Last edited by Peter_APIIT; 01-13-2008 at 05:42 AM. Reason: Left some addtiona information
 
Old 01-15-2008, 03:22 AM   #13
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
I have did what u told. I temporarily disable the LAN interface and allow only one interface which is WLAN(ral0) but i stilll unable to get any ip address.


Quote:
My /etc/hostname.ral0 : inet 192.168.2.1 255.255.255.0 NONE
Quote:
My /etc/dhcpd.conf : subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1;

host pc1 {
hardware ethernet 00:18:de:78:29:3a
fixed-address 192.168.2.10;
}
}

What wrong with it ? I have run out of idea.
 
Old 01-18-2008, 12:50 AM   #14
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Help Please. I really run out of idea how to solve it.
 
Old 01-18-2008, 01:07 AM   #15
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 297

Rep: Reputation: 49
Hi,

I see you use IP addresses 176.16.x.x. Do you actually have those addresses assigned from your provider or did you mean to use private addresses?

Private addresses would be 172.16.0.0/12.
 
  


Reply



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
Red Hat 9 Multiple gateway routing configuration problem neo_kryptik Linux - Networking 4 08-29-2007 10:21 AM
vpn routing without the gateway karen.pertierra Linux - Networking 1 03-18-2007 06:39 AM
multi gateway routing problem hi100nu Linux - Networking 2 06-17-2006 01:24 PM
Linux Routing and Gateway GavSim Linux - Networking 1 02-08-2006 02:08 PM
DHCP and gateway routing problems (simple noob problem) michaelsanford Linux - Networking 4 04-13-2005 02:17 PM

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

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