|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
networking not working
Hi
My OpenBSD install went fine. My network cards were detected as xl0 and xl1. On the first boot i did: Code:
#ifconfig -a Code:
#ping 192.168.2.234 So i did a sniff with tcpdump and the OpenBSD box wasn't getting replies from arp requests that it had issued in an attempt to find it's own MAC address so it could ping the gateway. The arp cache on this OpenBSD box is emtpy and it doesn't respond to the gateway's arp requests addressed to it. I'm using the default install(generic kernel) Any ideas? |
|
|||
Please post the output of
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Also include a detailed network topology, annotated firewall rulesets.. and perhaps a clue.
|
|
|||
Here's the output of netstat -rn:Routing tables
Code:
Internet: Destination Gateway Flags Refs Use Mtu Prio Iface default 192.168.1.254 GS 0 0 - 8 xl0 127/8 127.0.0.1 UGRS 0 0 33200 8 lo0 127.0.0.1 127.0.0.1 UH 4 0 33200 4 lo0 192.168.1/24 link#2 C 1 0 - 4 xl1 192.168.1.66 127.0.0.1 UGHS 0 0 33200 8 lo0 192.168.1.67 127.0.0.1 UGHS 0 0 33200 8 lo0 192.168.1.68 127.0.0.1 UGHS 0 0 33200 8 lo0 192.168.1.254 link#2 HLc 1 679 - 4 xl1 224/4 127.0.0.1 URS 0 0 33200 8 lo0 Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33200 priority: 0 groups: lo inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:04:76:e6:5c:4e priority: 0 groups: egress media: Ethernet autoselect (none) status: no carrier inet6 fe80::204:76ff:fee6:5c4e%xl0 prefixlen 64 scopeid 0x1 inet 192.168.1.66 netmask 0xffffff00 broadcast 192.168.1.255 xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:02:1c:f1:35:51 priority: 0 media: Ethernet autoselect (none) status: no carrier inet6 fe80::202:1cff:fef1:3551%xl1 prefixlen 64 scopeid 0x2 inet 192.168.1.67 netmask 0xffffff00 broadcast 192.168.1.255 xl2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:01:02:b7:1b:16 priority: 0 media: Ethernet autoselect (100baseTX full-duplex) status: active inet6 fe80::201:2ff:feb7:1b16%xl2 prefixlen 64 scopeid 0x3 inet 192.168.1.68 netmask 0xffffff00 broadcast 192.168.1.255 enc0: flags=0<> priority: 0 groups: enc status: active pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33200 priority: 0 groups: pflog Thank you very much for your help.I put the wrong I.P in the original post cause i forgot what the gateways i.p was. Last edited by J65nko; 10th January 2011 at 11:40 PM. Reason: Added [noparse][code][/noparse] tags ;) |
|
|||
Indeed, xl0/xl1 appear down.
It also seems like you're trying to join the same subnet with each interface, are they all requesting IP's from the same DHCP server? that's a silly plan. |
|
|||
Code:
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:04:76:e6:5c:4e priority: 0 groups: egress media: Ethernet autoselect (none) status: no carrier inet6 fe80::204:76ff:fee6:5c4e%xl0 prefixlen 64 scopeid 0x1 inet 192.168.1.66 netmask 0xffffff00 broadcast 192.168.1.255 xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:02:1c:f1:35:51 priority: 0 media: Ethernet autoselect (none) status: no carrier inet6 fe80::202:1cff:fef1:3551%xl1 prefixlen 64 scopeid 0x2 inet 192.168.1.67 netmask 0xffffff00 broadcast 192.168.1.255 xl2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:01:02:b7:1b:16 priority: 0 media: Ethernet autoselect (100baseTX full-duplex) status: active inet6 fe80::201:2ff:feb7:1b16%xl2 prefixlen 64 scopeid 0x3 inet 192.168.1.68 netmask 0xffffff00 broadcast 192.168.1.255
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
I don't care about the overall plan of the network at this stage. I'm still trying to determine if the interfaces work with OpenBSD at all. I only have one interface attached at a time. I'm just trying to get a basic dhcp I.P working. The other machines i've got all work. so the border router works for sure. I'm just trying to get one interface talking to the net. As all the interfaces were detected i don't know why i can't achieve this simple goal. I will configure properly when i find that i can do networking at all.
Any ideas, based the output of the commands i posted?. |
|
|||
If the xl2 NIC still has a status: active you could do
Code:
# dhclient xl2
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
But i have an I.P address. That's not the problem. The problem is that when i try to ping the gateway i get:
ping: 192.168.1.254 64 chars, ret=-1 ping: sendto: Host is down ---192.168.1.254 ping statistics ---- 9 packets transmitted, 0 packets recieved, 100% packet loss and yet i know for a fact that the gateway isn't down In the tcpdump output the OpenBSD box couldn't find it's own MAC address. It also didn't respond to the gateway's ARP queries to itself. That's why i'm stuck. Thank you for all the replies though |
|
|||
That solved it. Silly me. So the problem was that OpenBSD just was sending packets out on interfaces that weren't up. Sorry to waste time on such a simple issue and thanks again.
|
|
|||
The dhclient command would have fixed your routing tables. There are always some people who just don't try the advice given here
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Basic networking fail. | diw | OpenBSD General | 13 | 31st March 2009 09:29 AM |
Networking: CLI quick reference | anomie | Other BSD and UNIX/UNIX-like | 0 | 2nd October 2008 01:21 AM |
Would BSD be right to learn networking? | php111 | Off-Topic | 17 | 25th September 2008 07:02 PM |
Some networking help | kevinz | OpenBSD General | 8 | 15th September 2008 03:34 AM |
Networking between bsd and mac | rex | FreeBSD General | 7 | 12th May 2008 07:57 AM |