Openbsd as gateway Problem

Hello all expert network administrator, i truly new to networking. Please help me in this problem. /etc/hostname.rl1(Wired Internal interface) inet 10.0.0.1 255.255.255.0 none
/etc/hostname.ral0 : inet 10.0.1.1 255.255.255.0 and others option as well.

/etc/dhcpd.conf : share-network local { subnet 10.0.0.0 netmask 255.255.255.0 options routers 10.0.0.10; range 10.0.0.25 10.0.0.35;}}
share-network wireless { subnet 10.0.1.0 netmask 255.255.255.0 option routers 10.0.0.10 range 10.0.1.5 10.0.1.7 ;}}

output of ifconfig -a | less :
rl0 : inet: 192.168.1.3 netmask:0xffffff00 broadcast:192.168.1.255
rl1: No ip address becuase i didn't plugin cable
ral0: 10.0.1.1 netmask:0xffffff00 broadcast:10.0.1.255

Output of netstat -r | less :

Destination Gateway Flags Refs Use MTU Interface
default 219.93.218.177 UGS 11 618516 - tun0
10.0.1/24 link#3 UC 0 82 - ral0
localhost localhost UH 0 82 33224 lo0
192.168.1/24 link#1 UC 1 0 - rl0
192.168.1.1 00:30:0a:93:b0:58 UHLc 1 33 - rl0
219.93.218.177 103.17748.60 UH 1 0 1492 tun0
I really run out of idea . PLease help me. Thanks for your help. Your help is greatly appreciated by me and others.

Guy, you seriously need to parse better, that reads like a damned mess.

Cables have absolutely nothing to do with an interface having an IP address, so the problem lies not in your original assumption.

Take a look in your dmesg and see if there are IRQ or rl1 related errors for one, but also attempt to manually set the IP.

If it's any help I use a NetBSD as my gateway, I have two RealTek 8139 cards, as rtk0 and rtk1,

my rtk0 is on the same subnet as my ADSL router

my rtk1 is on my internal subnet

consider each subnet separately, what address and subnets do they need. Confirm the connectivity on each subnet separately.

Next, sort out routing, I enable IP routing and set my default gateway to point to the ADSL router.

Then, if you wish, sort out a local DNS server on the gateway.

And finally add a DHCPD server to provide local IP addresses on your internal subnet for DHCP enabled machines.

Any other advises ?

I have absolutely no idea what your problem is, I've posted a sensible step by step approach to setting up a gateway. If you follow the process then perhaps we can solve the problem by getting each stage to work, but at the moment you've just sent us a mess of unintelligable information.

Problem : My wired canot get any address from dhcpd server and my wireless connection can get address but cannot ping my gateway which is 10.0.0.10.

My wired interface even cannot get any i address from dhcp server even when i plugin the wired.

what happens if you use ifconfig to explicitly configure it as a static IP address with the appropriate netmask?

What network is your gateway on because it is not the same as your wireless if that is

I really a stupid peson.

I odn't know use ifconfig to manually assign. I have to read up the man page. This may take few hour. can u tell me how to do that ?

I don;t understand what u said here.

They all said if you have multiple interface, then u different subnet.

Therefore, i just create one gateway for wired and wireless.

Why linksys router only need on egateway address when have wired and wireless ?

I really a stupid person.

Thanks for your help.

Your help is greatly appreciated by me and others.

First of all, plan your network.

Make a table as follows....

interface   network    netmask    broadcast    address

and under each write the

(a) name of the interface, eg rt0 etc

(b) the network it will be connected to, eg 192.168.1.0/24

(c) the netmask it will use, eg 255.255.255.0

(d) the broadcast address it will use, eg 192.168.1.255

(e) the address this interface will have on this network, eg 192.168.1.1

do this for every interface. If the interface is to be configured by DHCP then write DHCP in the address column.

Once you have done that determine the address of your default route and which interface is connected to that address. If the network/netmask don't tally with the gateway you will not talk to it.

To configure a static address use

ifconfig rt0 inet 192.168.1.1 netmask 255.255.255.0

read the following....

man ifconfig
man ifconfig.if
man mygate
man resolv.conf

Do u ask me to change my setting to class C address ? I think i don't need /etc/mygate because my rl0(external interface) is configured dhcp by my ISP.
I have hostname.rl1 and hostnameral0 for wired and wireless connection.
What i need to do in order to troubleshoot the problem ?
By the way , thanks for oyur help. You are really a helpful gu becuase no one willing to help me out except you. A billion thanks for your help.

Okay, and is it?

What happens if you type "route show 0.0.0.0".

For example my router is configured on it's outside leg by the ISP, but the inside subnet is all DHCP that it manages. I use a static IP address within that subnet. The router then does NAT onto the outside world. I have mygate (default route) point at the IP address of the router.

Are these devices getting configured?

type "ifconfig -a"

In terms of where to spend the effort right now, it is get the rl0 interface talking to your router.

Quick question, are you absolutely sure you have rl0 and rl1 the right way round?

I pretty sure tha rl0(External interface) because i can connect to internet through this interface.
rl1(Internal interface) to internal LAN. My rl1 is never configure and doesn't have any address. The others have address such as rl0, ral0 and tun0.
Route show :
Destination Gateway Flags Refs Use Mtu Interface
default 219.93.218.177 UGS 2 2083 - tun0
localhost localhost UH 0 2 33224 lo0
192.168.124 link#1 UC 1 0 - rl0
192.168.1.1 Hardwrae add UHLc 0 18 - rl0
192.168.2/24 link#3 UC 1 0 - ral0
192.168.2.3 Hardware add UH 1 0 1492 tun0

After i have manually configured rl1 by ifconfig inet 192.168.1.2 netmask 255.255.255.0 . I can get the ip address at boot time.
Output of ifconfig -a | less : rl0(External interface) 192.168.1.2 /24
rl1 - 192.168.1.2 /24 ral0 : 192.168.2.2 /24
Does my rl0 will crash with rl1 ? /etc/hostname.rl1 inet 192.168.1.2 /24 NONE
/etc/hostname.ral0 inet 192.168.2.2 /24 NONE media autoselect \mediaopt hostap
/etc/dhcpd.conf subnet-network LOCAL-NET { subnet 192.168.1.0 netmask 255.255.255.0 { option routers 192.168.1.1; I worried rl0 will crash with rl1. Therefore, i change it to 182.168.1.5 .
range 192.168.1.3 192.168.1.5;}}
shared-network WIRELESS-NET { subnet 192.168.2.0 netmask 255.255.255.0 { optio routers 192.168.2.1; range 192.168.2.3 192.168.2.5; }}

My understanding is your router is on the same subnet as rl0, what is the address of your router, this should be the same as your default gateway or "mygate".

Then you rl0 subnet address range must include this gateway address.

So let's just sort out rl0, make sure you can ping the router and the router replies. The next step is confirm you can ping an address beyond the router.

You may want to set up /etc/resolv.conf so that either

(a) you use a name server beyond the router

(b) you use the router as the nameserver itself as long as it does DNS proxy.

After i connect to my openbsd router, i cannot ping the gateway neither nor wired or wireless.
I don't know what happen. My /etc/ppp/ppp.conf consists of add! default HISADDR.
Shoudl i change my rl1 to another subnet ? Thanks

Certainly no two interface adapters address ranges/subnets should overlap.

Reconfigure rl1 way out of the way so we can solve rl0 first.

I have change that but i don't know whether my configuration is correct.
/etc/hostname.rl1 :
inet 192.168.1.5 255.255.0.0 NONE
/etc/dhcpd.conf :
subnet 192.168.0.0 netmask 255.255.0.0
option routers 192.168.1.1;
range 192.168.1.3 192.168.1.5;
By the way, i have to say a billion times of thanks to you. YOu are the only person who willing to help me.
How can i return help to you ?

post complete results of "ifconfig -a", it's difficult to see complete picture with fragmented postings.

Error Message from : /var/log/daemon
Warning : Subnet 192.168.0.0/24 conflicts with subnet 192.168.0.0/16
I don't know much about subnet. Thanks.

/etc/hostanme.rl1 : inet 176.16.1.2 255.240.0.0
/etc/dhcpd.conf : subnet 176.16.0.0 netmask 250.240.0.0 option router 176.16.1.1 range 176.16.10.10 176.16.10.12;