Openbsd as gateway Problem

Thread Tools Search this Thread
Special Forums IP Networking Openbsd as gateway Problem
# 8  
Old 12-22-2007

I really a stupid peson.

what happens if you use ifconfig to explicitly configure it as a static IP address with the appropriate netmask?
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 ?

What network is your gateway on because it is not the same as your wireless if that is
I don;t understand what u said here.

share-network local { subnet netmask options routers; range;}}
share-network wireless { subnet netmask option routers range ;}}
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.
# 9  
Old 12-22-2007
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

(c) the netmask it will use, eg

(d) the broadcast address it will use, eg

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

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 netmask

read the following....

man ifconfig
man ifconfig.if
man mygate
man resolv.conf
# 10  
Old 12-22-2007
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.
# 11  
Old 12-22-2007
Originally Posted by Peter_APIIT
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.
Okay, and is it?

What happens if you type "route show".

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.

Originally Posted by Peter_APIIT
I have hostname.rl1 and hostname.ral0 for wired and wireless connection.
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?
# 12  
Old 12-22-2007
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 UGS 2 2083 - tun0
localhost localhost UH 0 2 33224 lo0
192.168.124 link#1 UC 1 0 - rl0 Hardwrae add UHLc 0 18 - rl0
192.168.2/24 link#3 UC 1 0 - ral0 Hardware add UH 1 0 1492 tun0
# 13  
Old 12-23-2007
After i have manually configured rl1 by ifconfig inet netmask . I can get the ip address at boot time.
Output of ifconfig -a | less : rl0(External interface) /24
rl1 - /24 ral0 : /24
Does my rl0 will crash with rl1 ? /etc/hostname.rl1 inet /24 NONE
/etc/hostname.ral0 inet /24 NONE media autoselect \mediaopt hostap
/etc/dhcpd.conf subnet-network LOCAL-NET { subnet netmask { option routers; I worried rl0 will crash with rl1. Therefore, i change it to .
shared-network WIRELESS-NET { subnet netmask { optio routers; range; }}

Last edited by Peter_APIIT; 12-23-2007 at 01:04 AM..
# 14  
Old 12-23-2007
Originally Posted by Peter_APIIT
Does my rl0 will crash with rl1 ?
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.
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