|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Manually Configuring an IP Address problem
Hi, I'm trying to configure my wireless interface manually without dhclient. I tried searching around but cant seem to find the right steps. So far i have tried
Code:
sudo ifconfig urtw0 inet [ipaddress] netmask [netmask] up the ip address and netmask i use are the ones last used so they are right. What other steps am i missing? thanks munchiez |
|
|||
Possibly verifying the routing table looks ok?
|
|
|||
You need:
In my case the nameserver and default route happens to be the same, because I run a nameserver on my OBSD firewall. Usually these are different.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
netstat -rn shows normally with working connection:
Code:
Internet: Destination Gateway Flags Refs Use Mtu Prio Iface default 192.168.0.1 UGS 1 33 - 12 urtw0 127/8 127.0.0.1 UGRS 0 0 33196 8 lo0 127.0.0.1 127.0.0.1 UH 2 2 33196 4 lo0 192.168.0/24 link#5 UC 1 0 - 4 urtw0 192.168.0.1 c4:3d:c7:18:ba:3b UHLc 1 0 - 4 urtw0 192.168.0.4 127.0.0.1 UGHS 0 0 33196 8 lo0 224/4 127.0.0.1 URS 0 0 33196 8 lo0 after i run Code:
inet 192.168.0.4 netmask 0xffffff00 broadcast 192.168.0.255 Code:
Internet: Destination Gateway Flags Refs Use Mtu Prio Iface 127/8 127.0.0.1 UGRS 0 0 33196 8 lo0 127.0.0.1 127.0.0.1 UH 2 2 33196 4 lo0 192.168.0/24 link#7 UC 0 0 - 4 urtw0 192.168.0.4 127.0.0.1 UGHS 0 0 33196 8 lo0 224/4 127.0.0.1 URS 0 0 33196 8 lo0 |
|
|||
resolv.conf is the same on both instances
Code:
nameserver 194.168.4.100 nameserver 194.168.8.100 lookup file bind i''m trying to add a default gateway , but etc/mygate does not exist Last edited by munchiez; 31st March 2013 at 10:19 PM. |
|
|||
ok solved just added the route via terminal
|
|
|||
First get things working by adding the route manually:
# route add default ww.xx.yy.zz /etc/mygate only needs a single line with the IP address of the default gateway. See mygate(5)
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
thanks
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Configuring PF for NAT | nekoneko | OpenBSD Security | 7 | 13th August 2012 04:36 PM |
configuring second NIC | tomp | OpenBSD Installation and Upgrading | 19 | 15th August 2011 07:25 PM |
Static IP address problem | rex | FreeBSD General | 2 | 25th November 2008 08:53 PM |
How do I manually load firmware in OpenBSD? | Shagbag | OpenBSD Packages and Ports | 3 | 18th September 2008 08:37 PM |
Need Help Configuring Postfix | iainnitro | General software and network | 6 | 8th June 2008 04:55 AM |