Openbsd as gateway Problem

Thread Tools Search this Thread
Special Forums IP Networking Openbsd as gateway Problem
# 1  
Old 12-21-2007
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 none
/etc/hostname.ral0 : inet and others option as well.

/etc/dhcpd.conf : share-network local { subnet netmask options routers; range;}}
share-network wireless { subnet netmask option routers range ;}}

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

Output of netstat -r | less :

Destination Gateway Flags Refs Use MTU Interface
default 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 00:30:0a:93:b0:58 UHLc 1 33 - rl0 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.

Last edited by Peter_APIIT; 12-22-2007 at 02:24 AM..
# 2  
Old 12-21-2007
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.
# 3  
Old 12-21-2007
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.
# 4  
Old 12-21-2007
Any other advises ?
# 5  
Old 12-21-2007
Originally Posted by Peter_APIIT
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.
# 6  
Old 12-22-2007

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

My wired interface even cannot get any i address from dhcp server even when i plugin the wired.
# 7  
Old 12-22-2007
Originally Posted by Peter_APIIT
Problem : My wired canot get any address from dhcpd server
what happens if you use ifconfig to explicitly configure it as a static IP address with the appropriate netmask?

Originally Posted by Peter_APIIT
and my wireless connection can get address but cannot ping my gateway which is
What network is your gateway on because it is not the same as your wireless if that is
ral0: netmask:0xffffff00 broadcast:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY =, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies

2. IP Networking

Routing problem : two interfaces one gateway

hi folks, i have a horstbox-router with the following configuration. it has 4 ethernet ports from wich one (wan0) is configured as an external modem via dhcp. at this port/interface(wan0) it is connected with my home network (other switch). this configuration results in the following... (14 Replies)
Discussion started by: gencaslan
14 Replies

3. IP Networking

Small Problem about Default Gateway

I have Ubuntu linux Os with two eth cards. I can easily delete def gatewayg. But I can't add new one.. :confused::confused: When I run route-n: alperen@alperen-System-Product-Name:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use... (1 Reply)
Discussion started by: Mhnds
1 Replies

4. Linux

GNUGK-How to setup static gateway to gateway routing

Dear Sir I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper. I am having a problem, configuring static call routing on GNUGK in the section ... (0 Replies)
Discussion started by: mfondoum
0 Replies

5. BSD

Xwindows Problem OPenBSD 4.6

Hi, I have OPENBSD 4.6 installed as a VM in Virtual Box on my Ubuntu 9.10 machine. Problem is that the XWindows will not start when I boot my OPENBSD VM. I am new to OPENBSD. How do I fix this problem? (5 Replies)
Discussion started by: mojoman
5 Replies

6. BSD


hello , I wondered if anyone could assist me in writing a simple packet filter firewall on my OpenBSD v4.5. All I intend doing is to have two firewalling machine on a separate network : ext_if = xl0 (dhcp) // Internet interface int_if=xl1 // Internatl interface ... (0 Replies)
Discussion started by: mattjam
0 Replies

7. BSD

Trying to get into OpenBSD

I am an eight year Linux user and after getting into an argument with someone about OpenBSD overiding my theory that OS security is 50% OS and 50% admin skill, I decided to try OpenBSD for myself. I've tried BSDs before and haven't been able to get into them for day to dy use, but I am going to... (7 Replies)
Discussion started by: deckard
7 Replies

8. BSD

[OpenBSD] DNS startup problem

I have the DNS files set up on my OpenBSD 4.0 amd64 system however when I run named, I get the following error in my logs: Sep 23 10:43:03 grunty named: starting BIND 9.3.2-P1 Sep 23 10:43:03 grunty named: /etc/named.conf:25: change directory to '/var/named' failed: file not found Sep 23... (2 Replies)
Discussion started by: BOFH
2 Replies

9. BSD

OpenBSD : mount problem

hi I have two hhd's. One is primary disk which holds the OpenBSD system and the other is my download disk (disk2). I formatted disk2 in "ffs" type. And created a "disklabel", wd1a. The disklabel program says "No change made", but I can see the changes by "p" command. I cannot mount my disk2!... (1 Reply)
Discussion started by: fnoyan
1 Replies

10. UNIX for Dummies Questions & Answers

please help with openbsd 2.9

Please help. I have downloaded the openbsd 2.9 snapshot from the following files were downloaded from the snapshot dir. ( the whole dir. was downloaded ) base29,bsd,bsd.rd,cdrom29.fs,cksum,comp29,etc29,all three floppy images,game29,index,install.ata,install.chs... (11 Replies)
Discussion started by: Blunt_Killer
11 Replies
Login or Register to Ask a Question