Ask Your Question
1

Wanting to extend network on wired from wireless

asked 2015-10-18 18:47:09 -0500

tomservo gravatar image

I've got a Fedora workstation on my internal NATted network, 172.31.60.X

It's connected via wireless, on 172.31.60.205

I want to extend the SAME network out to a ethernet switch through the wired connection.

My thought was I would assign 172.31.60.206 to the wired connection, and somehow be able to route other 172.31.60.X IP's on the switch through to the wireless to send the traffic.

I've tried reading up on bonding, so both the wireless and wired would be 172.31.60.205, but I don't think that will work in this case.

I'm just not sure which is the best way to go.

Any help would be GREATLY appreciated.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2015-10-19 06:06:19 -0500

grahamc gravatar image

Bonding is not the right thing to use. Bonding is designed for the multiple connections to go to the same device as either a fail-over, or to get additional bandwidth.

You need bridging for this. Bridging is essentially an ethernet switch implemented in software, the external network interfaces (eg, eth0) are tied to the switch, and the bridge's interface (eg, br0) is essentially the virtual interface to the virtual switch.

You will need to remove any IP address assignment from the physical interfaces, bridge them together, and then assign your IP address to the bridging interface.

yum install bridge-utils

brctl --help

I'll leave you to figure out the exact commands for your specific configuration.

edit flag offensive delete link more

Comments

  1. sudo brctl addbr somename
  2. sudo brctl addif <your eth interface> <your wifi interface>
florian gravatar imageflorian ( 2015-10-19 11:25:33 -0500 )edit

This does not work. You cannot just add the wireless interface to the bridge. First you have to do "iw wlan0 set 4addr on". Then you have to make wpa_supplicant aware of the bridge. Then, apparently you have to do some ebtables stuff as well.

I've been made aware of these things on other posts found through Google searches.

However, nothing works.

I've been doing system administration for years so I know my way around Linux, but I'm not a networking master ninja.

I need some real help here.

I can't be the only person who has ever done this!

tomservo gravatar imagetomservo ( 2015-10-25 01:45:36 -0500 )edit

I no longer need this as I have gone to a power line Ethernet solution which I was able to get close to my Linux machine.

tomservo gravatar imagetomservo ( 2015-10-25 23:34:24 -0500 )edit
1

answered 2015-10-19 12:35:35 -0500

jake gravatar image
$ nm-connection-editor
  1. "Add" a network connection,...
  2. Choose "Ethernet" and click "Create,..."
  3. Insert a connection name.
  4. Select the "IPv4 Settings" Tab.
  5. Choose "Shared to other computers" as Method.
  6. Save the connection and close the Network Connections window!

  • Open the Network Settings and select your wired connection

You should see 2 profiles for the wired connection.

  • Click on the profile created via nm-connection-editor
edit flag offensive delete link more

Comments

This will not work for me as I do not want a NAT. I want everything on the 172.31.60.x network.

tomservo gravatar imagetomservo ( 2015-10-25 01:39:24 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-10-18 18:47:09 -0500

Seen: 421 times

Last updated: Oct 19 '15