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.
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.
(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.
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.
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
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 ?