PDA

View Full Version : Cannot assign static IP.


bsdnewbie999
06-19-2008, 03:05 AM
when i tried to assign static IP throught command
ifconfig r10 inet 172.16.30.5 netmask 255.255.255.0
and i got this message
ifconfig:SIOGIFFLAGS: Device not configured

BSDfan666
06-19-2008, 03:16 AM
Do you even have an rl0 interface? :rolleyes:

ocicat
06-19-2008, 03:21 AM
ifconfig r10 inet 172.16.30.5 netmask 255.255.255.0
I suspect you have specified the interface incorrectly.

It appears you have r10 when it should be rl0. The manner in which OpenBSD identifies interfaces is by attaching a numerical value to the driver used, ie. rl.

BSDfan666
06-19-2008, 03:32 AM
ocicat has better eyes then me. ;)

bsdnewbie999
06-19-2008, 05:02 AM
:eek: LOL,, i thought is r10.....

openbsdspirit
06-21-2008, 10:50 AM
You also can configure through /etc/hostname.rl0.