Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with static v4 IPs

Status
Not open for further replies.
Mar 7, 2010
1
US
Please excuse the fact that I'm probably overlooking something really obvious and trivial but I'm stuck.

I have some OpenBSD background but have not worked with it for a number of years. I recently decided to use OpenBSD (4.6) and pf to build a new firewall that I need.

Initially I set both network interfaces to dhcp in their hostname.if files (hostname.fxp0 & hostname.fxp1) just to make sure all the hardware was working correctly. Everything worked perfectly.

I then changed the hostname.if files to set static IPs as follows:

hostname.fxp1
Code:
inet w.x.y.z 255.255.255.0 w.x.y.255 description internal
where w.x.y.z is the actual IP (of course).

But when I bring the interface up, I get this result:
Code:
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:02:be:28:52:33
priority: 0
media: Ethernet autoselect (100BaseTX full-duplex)
status: active
inet6 fe80::202:b3ff:fe28:5233%fxp1 prefixlen 64 scopeid 0x2
and, indeed, I don't seem to have any valid IPv4 address.

I checked all the man pages but didn't find anything that illuminated me.

Can someone tell me what I'm missing here?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top