LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   No connectivity on direct RJ45 connection (https://www.linuxquestions.org/questions/%2Absd-17/no-connectivity-on-direct-rj45-connection-4175639802/)

hifi100 10-05-2018 08:42 AM

No connectivity on direct RJ45 connection
 
My ISP provides internet by using RJ45 lan cable.

Problem is if I dont connect the router and connect the RJ45 cable directly to the motherboard's RJ45 female there is no connectivity. None of the LEDs glow.

If I use my router the LEDs on the LAN ports start glowing and I have full connectivity.

I am using OpenBSD 6.3.

Can someone explain this to me ?

EDIT: Ubuntu worked fine with a direct connection.

sevendogsbsd 10-05-2018 10:20 AM

Not an openBSD user but off the top of my head, is BSD set up to pull an IP using DHCP? How was ubuntu set up? Your ISP isn't assigning you a static IP unless you paid for one so it is going to most likely be dynamic.

hifi100 10-05-2018 10:29 AM

Quote:

Originally Posted by sevendogsbsd (Post 5911440)
Not an openBSD user but off the top of my head, is BSD set up to pull an IP using DHCP? How was ubuntu set up? Your ISP isn't assigning you a static IP unless you paid for one so it is going to most likely be dynamic.

Let me explain my situation.

My ISP has given me a static local IP

172.16.197.XXX #IP Address
255.255.255.0 #subnet mask
172.16.197.1 #Default gateway
8.8.8.8 #DNS1
8.8.4.4 #DNS2

During the installation process OpenBSD lets you set a static IP but the problem is with the cable directly connected to the motherboard there is no connectivity.
The LEDs on the lan adapter doesn't glow.

sevendogsbsd 10-05-2018 11:09 AM

Gateway issue? With the router in place, the router is your gateway, without it, the ISP should have a gateway - is it "172.16.197.1"?

Well, just thought about it - that's not going to NOT give you connectivity - the lan light should still be active...

Does the ubuntu install have the same IP Since it works with ubuntu and not bsd?

Sorry, odd problem...

hifi100 10-05-2018 11:15 AM

Quote:

Originally Posted by sevendogsbsd (Post 5911472)
Gateway issue? With the router in place, the router is your gateway, without it, the ISP should have a gateway - is it "172.16.197.1"?

Well, just thought about it - that's not going to NOT give you connectivity - the lan light should still be active...

Does the ubuntu install have the same IP Since it works with ubuntu and not bsd?

Sorry, odd problem...

Yes 17.16.197.1 is the gateway. I configured the above IP configuration in Ubuntu and it worked fine.

It may sound strange but I think using Pfsense on this box for a period of time must have partially damaged the onboard NIC.

cynwulf 10-05-2018 11:22 AM

How is your hostname.if(5) for the interface configured?

https://man.openbsd.org/hostname.if

hifi100 10-05-2018 11:32 AM

Quote:

Originally Posted by cynwulf (Post 5911478)
How is your hostname.if(5) for the interface configured?

https://man.openbsd.org/hostname.if

I have added another NIC to my system.

I want to set static IP on it. Please guide me through the process.

Code:

$ ifconfig                                                               
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        index 3 priority 0 llprio 3
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 60:45:cb:87:53:a5
        index 1 priority 0 llprio 3
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
        status: active
        inet 192.168.0.100 netmask 0xffffff00 broadcast 192.168.0.255
enc0: flags=0<>
        index 2 priority 0 llprio 3
        groups: enc
        status: active
udav0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:e0:4c:53:44:58
        index 4 priority 0 llprio 3
        media: Ethernet none

pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
        index 5 priority 0 llprio 3
        groups: pflog

udav0 is the interface I want to set static IP on. Please help.

jggimi 10-06-2018 09:29 AM

Was this unhelpful?

http://daemonforums.org/showthread.p...5133#post65133

hifi100 10-06-2018 09:44 AM

Quote:

Originally Posted by jggimi (Post 5911745)

No but its too complicated for me. Dont bother to answer to this thread coz I have given up.

I started using Linux in 2007 and I find it easy now but OpenBSD is something totally new to me.

I don't want to tweak the system to a point where it breaks. I dont have a clonezilla backup.

Budget is tight atm and cant invest on a new external HDD.


All times are GMT -5. The time now is 07:45 PM.