LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   OpenSuSE 13.2 problem sharing internet connection (https://www.linuxquestions.org/questions/linux-networking-3/opensuse-13-2-problem-sharing-internet-connection-4175528688/)

linux.penguin67 12-18-2014 03:56 PM

OpenSuSE 13.2 problem sharing internet connection
 
Howdy everyone. I did a fresh install of OpenSuSE 13.2 on a machine that had been running OpenSuSE 13.1.

Here's the setup:
Cable modem --> server --> wireless router --> rest of the network.

On the server I can access the internet just fine. I had it setup, with OpenSuSE 13.1, so all the other devices on the network could also access the internet. I setup DHCP, and the router gets an ip address from the server... I think. The router tells me it has a DHCP connection and an ip addy of 192.168.0.21. Problem is, I can't ping the router from the server?

The server receives it's ip address from the cable modem via DHCP. It has 2 Nics, enp0s25(old eth0), and enp2s0(old eth1). enp0s25 is the nic facing the cable modem and enp2s0 is the internal nic facing the wireless router. Before the fresh install, all was working just fine. It's not a hardware issue, it's a wetware issue.

I've installed DNS but it isn't setup. I thought I had both DNS & DHCP running before, and I was using masquerading.

A couple of other things:
The server runs apache.
The nic on the server connected to the wireless has an ip of 192.168.0.17
The wireless router hands out ips in the 192.168.1.2 - 192.168.1.35 range. They can all talk to each other.
If possible, I'd like to have the server on the same subnet as the rest of the internal network, this used to be a problem...

Can anyone help? What do you need to know?
Thank you in advance.

suicidaleggroll 12-18-2014 04:01 PM

I can't help with the rest of it, but this part is easy:

Quote:

Originally Posted by linux.penguin67 (Post 5287124)
The nic on the server connected to the wireless has an ip of 192.168.0.17
The wireless router hands out ips in the 192.168.1.2 - 192.168.1.35 range. They can all talk to each other.
If possible, I'd like to have the server on the same subnet as the rest of the internal network, this used to be a problem...

You need to configure a static local IP for your wireless router on the 192.168.0.x subnet, disable its DHCP server, and plug the cable from your server into one of the LAN ports on the wireless router instead of the WAN port. This will cause the wireless router to function as a wireless access point instead. All DHCP requests will be served by your server, and the wireless router will simply act as a transparent wired/wireless bridge. Some routers will have a special setting you enable called "access point" or similar, which modifies the configuration settings to allow you to do this easily. If not, doing the above steps should accomplish your goal on almost any SOHO wireless router out there. I've personally done this on a Linksys WRT54GL, Asus RT-N16, Asus RT-AC68U, and a couple of others I can't remember.

linux.penguin67 12-18-2014 04:09 PM

Thank You
 
Thank you suicidaleggroll!
Once I get the other problem straightened out, I'll definitely be giving this a go. Just too simple...

linux.penguin67 12-18-2014 07:23 PM

Solution to Internet Connection Sharing, Open SuSE 13.2
 
This is a link to an easy to follow set of instructions for setting up OpenSuSE to share your internet connection:

https://en.opensuse.org/SDB:Internet_connection_sharing


All times are GMT -5. The time now is 08:32 AM.