Trying to add a WiFi hot spot to my LAN - routing issue I think.
Here is my network topology:
[DSL Router] <- Ethernet -> [t16] <- Ethernet -> [t15] <- WiFi -> [t21] Computer t16 runs CentOS 7, two NICs - one to Internet side and the second one "Shared to other computers" per NetworkManager. It's default IP address is 10.42.0.1. The LAN is thus on the 10.42.0 subnet. This computer also provided DHCP for the LAN with reserved addresses for physical machines and dynamic addresses for virtual machines. Computer t15 also runs CentOS 7. It picks up its reserved address (10.42.0.115) on its Ethernet card. This part works fine and it can communicate with other computers on the LAN. I enabled the WiFi card in t15 and configured it thus: [WiFi] SSID: Gerling Mode: Hotspot [Wifi Security] WPA/WPA2 Personal (set password) [IPv4 Settings] Method: Shared to other computers Address 10.42.0.215 Netmask 255.255.255.0 Gateway 10.42.0.1 Computer t21 is my Raspberry Pi running Ubuntu Mate 16.04. I configured its WiFi connection thus: [WiFi] SSID: Gerling Mode: Client (also tried Adhoc) [Wifi Security] WPA/WPA2 Personal (set password) [IPv4 Settings] Method: DHCP These settings seem to connect, at least that message is displayed by the NetworkManager applet. If I look at connection information I see: [IPv4] IP Address: 10.42.0.211 Broadcast: 10.42.0.255 Subnet mask: 255.255.255.0 Default Route: 10.42.0.1 This seems to be good (unless I am missing something). However, I cannot ping between t21 and t15. I have also tried manually configuring the address on t21. Same problem. The WiFi connects "mechanically" but I cannot ping between the computers. In an earlier attempt I configured t15 manually to use the address 10.44.0.1 with the gateway 10.42.0.115 (its Ethernet card). I configured t21 to use 10.44.0.221. In this case I could ping between the computers and I could reach the Internet from t21. However, I could not reach t21 from other computers on my LAN as it was on a different subnet. Therefor I wished to put the WiFi hotspot on the 10.42.0 subnet. I realize I will need to reserve the IP addresses for the hotspot and t21 in my DHCP server so they do not get assigned to something else. First I need to get the hotspot working. Can anyone point me to what I have done wrong??? TIA, Ken p.s. As I was proof reading this post I decided to pull the Ethernet cable from t15. I CAN now ping between t15 and t21. Now I am REALLY confused :scratch: |
You're straying from the beaten path by not having the dhcp on the hotspot, but it doesn't seem to hurt. The output of the route command would be interesting. If dhcp reconfigures routes, even more so.
|
Thanks business_kid,
My eventual goal is to run the hotspot on the t16 computer. At the moment I am just trying to get a handle on tying two computers together with WiFi. Here are the results of route on t15 and t21 Code:
Ethernet wire out on t15 Ken |
I would like to see Something like
My own IP Internal Network Other internal Network (if it exists) Default route Then anything networked will find itself, the local net, and then use the default which presumably goes to internet. I only see 10.42.0, with 10.42.0.1 as presumably the server. I hope it has alol the answers. I also see interfaces wlan0, p1p2, & wlp2s0. I hope someone knows what they're doing with them, because I don't. I would chart this on paper, name everything, and get sense out of it that way. What's link-local? |
Does not 10.42.0.0/255.255.255.0 represent all addresses from 10.42.0.1 to 10.42.0.254? 10.42.0.1 (t16) is the server, router, firewall, shared Internet connection, shared VPN etc. Here is its route (with the VPN disconnected so as not to confuse the picture further
Code:
[ken@taylor16 ~]$ route Code:
[ken@vmCentOS7Mate ~]$ route It is coming up on time for my end of quarter Clonezilla snapshot of my machines. I may do t16 now and try sharing its WiFi interface and see what happens. Just have to take my whole LAN down for a little while. But then my ISP has a habit of doing that as well :rolleyes: Ken |
You're right about adressing 10.42.0.0 getting the entire network.
I would start with the hotspot by giving it a 192.168.x.x address, and then it becomes clear which is which at a glance. Things with wired connections should not have hotspot connections, unless there's something wrong with your wire :) That simplifies things. So your network becomes Code:
Internet <-->10.42.0.1<--> 10.42.x.x Wired Network |
Thanks once more business_kid. I may try setting up something like that once I configure some more test computers together. I am looking into a couple of other concerns before going too far. I wish to NOT broadcast the SSID - have not found out how to do that and I want to restrict WiFi connection to only selected MAC addresses. I think I can do the latter with firewalld. In the mean time I have the Pi plugged into a spare port on the switch. A LOT simpler.
Ken |
All times are GMT -5. The time now is 10:36 PM. |