LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 10-05-2018, 08:42 AM   #1
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Rep: Reputation: Disabled
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.

Last edited by hifi100; 10-05-2018 at 08:49 AM.
 
Old 10-05-2018, 10:20 AM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
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.
 
Old 10-05-2018, 10:29 AM   #3
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sevendogsbsd View Post
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.

Last edited by hifi100; 10-05-2018 at 10:51 AM.
 
Old 10-05-2018, 11:09 AM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
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...

Last edited by sevendogsbsd; 10-05-2018 at 11:11 AM.
 
Old 10-05-2018, 11:15 AM   #5
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sevendogsbsd View Post
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.
 
Old 10-05-2018, 11:22 AM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
How is your hostname.if(5) for the interface configured?

https://man.openbsd.org/hostname.if
 
Old 10-05-2018, 11:32 AM   #7
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cynwulf View Post
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.
 
Old 10-06-2018, 09:29 AM   #8
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 289

Rep: Reputation: 169Reputation: 169
Was this unhelpful?

http://daemonforums.org/showthread.p...5133#post65133
 
Old 10-06-2018, 09:44 AM   #9
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jggimi View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Direct connection via ethernet mantamar Linux - Newbie 5 01-14-2015 07:26 PM
Internet connection via windows xp network (rj45 cable) on Linux itz2000 Linux - Networking 15 12-19-2005 09:00 AM
PC to Laptop : direct connection pppaaarrrkkk Linux - Newbie 8 08-05-2005 01:54 AM
Direct Connection Xp and Linux mecca Linux - Networking 4 06-27-2004 03:09 PM
direct connection through the firewall cam99 Linux - Security 1 08-03-2003 05:35 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 12:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration