Project

General

Profile

Router » History » Version 7

Anonymous, 08/01/2021 09:20 PM
updating page

1 1
h1. Router and Network Setup
2
3
I started my foray into custom networking using DD-WRT running on a Linksys WRT3200ACM. This worked well for a while but I noticed performance issues as my network grew. In October 2019 I decided to go all in and setup a pfsense router.
4
5 3
h2. Router
6 1
7 2
!hp_elitedesk_800_G2.jpg!
8 1
9
* "HP EliteDesk 800 G2 SFF Desktop PC":https://support.hp.com/us-en/product/hp-elitedesk-800-g2-tower-pc/7633297/document/c04786146
10
* Intel Core i5-6600 (quad core @ 3.3 GHz)
11
* 8GB RAM 
12
* 128GB SSD HDD 
13
14 5
* Running pfsense: 2.5.2 (based on FreeBSD 12.2)
15 1
16
| *Interface* | *MAC*| *Reserved IP* | *Notes* |
17
|WAN                       |dc:4a:3e:81:f5:49|10.0.0.188               |attached to DMZ on FIOS router|
18
|LAN     (em0)          |00:15:17:f3:65:95|192.168.1.1 (static) |top port of Intel NIC|
19
|OPT1    (em1)         |00:15:17:f3:65:93|''n/a''                        |not currently connected|
20
|10G_LAN (mlxen0) |24:8a:07:e3:14:80|10.250.1.1 (static)  |Mellanox fiber card|
21
22
*NOTE:* be sure to enable powerd (System > Advanced > Miscellaneous). See: https://docs.netgate.com/pfsense/en/latest/book/config/advanced-misc.html#power-savings
23
24
h3. Configuration
25
26
To run 10G LAN as a separate VLAN:
27
28
* Go to Interfaces > Interface Assignments > VLANs and define the VLAN (17) on `mlxen0`. 
29
* Go back to Interface Assignments and create an interface for the 10G LAN if one doesn't already exist. For "Network port" select VLAN17 on mlxen0. (actually this doesn't work, just select `mxlen0`)
30
* Go to Firewall > Rules > 10G_LAN and create an "Allow all" rule for the interface:
31
** ALLOW IPv4; protocol any; src 10G_LAN net port any to dest 10G_LAN net port any
32
* Also create rule to block LAN traffic on 10G net:
33
** BLOCK IPv4; protocol any; src any to dest LAN net 
34
** Add similar rule to LAN to block 10G_LAN traffic
35
36
37
h2. Main Switch
38
39 6
!{width:30%}aruba_s3500.jpg!
40
41 1
Main switch: "Aruba S3500-24P":https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-a00036629en_us&docLocale=en_US
42
* 24 port 1000-BaseT POE ports
43
* 4 SFP+ (10G) ports
44
45
h3. Reset Instructions
46
47
If switch configuration needs to be reset follow these instructions:
48
49
# Power On and boot the Mobility Access Switch.
50
# Connect a client device (such as a laptop) to the Mobility Access Switch using any Ethernet port in the front. Ensure that DHCP is enabled on the client device and that it is not connected to any other network.
51
# For the S2500 and S3500 Mobility Access Switch, perform the following steps:
52
 # Press the LCD Menu button until Maintenance is selected.
53
 # Press the LCD Enter button to enter the Maintenance menu.
54
 # Press the LCD Menu button until GUI Quick Setup is selected.
55
 # Press the LCD Enter button to activate the GUI Quick Setup mode. Quick-setup invoked... appears on the LCD screen.
56
# For the S1500 Mobility Access Switch, press and hold the MODE button for 10 seconds or until the four mode status LEDs turn solid green to activate the GUI Quick Setup mode.
57
# Confirm that the client device has the IP address in the following range 172.16.0.[1-253] and the DHCP server has the IP address 172.16.0.254.
58
# Open a web browser and enter 172.16.0.254 into the address bar to launch the WebUI Startup Wizard.
59
# Follow the on-screen prompts to fill in the required fields to complete the configuration (see Table 1).
60
61
h3. Disable Stack Ports
62
63
This is how you disable the stack ports so you can use them as regular ports.
64
65
# Log into switch:
66
<pre>
67
$ ssh admin@192.168.1.2
68
</pre>
69
# Type enable and hit enter. Enter enable password when prompted.
70
# Enter the commands below:
71
<pre>
72
(ArubaS3500-24-POE) #configure terminal
73
74
(ArubaS3500-24-POE) (config) #delete stacking interface stack 1/2
75
76
(ArubaS3500-24-POE) (config) #delete stacking interface stack 1/3
77
78
(ArubaS3500-24-POE) (config) #write mem
79
</pre>
80
81
h3. Configuration
82
83
* If running the 10G network as a separate VLAN, under "Vlans" define VLAN 17 and give switch an unused IP: 10.250.1.10/255.255.255.0
84
* Next under "Ports" on the "Switching" tab define a profile for the 10G LAN and associate all 10G ports with it: 
85
| *Name* | *Switch Mode* | *Access VLAN* | *Native VLAN* | *Allowed VLANs* | *Association*|
86
|10G_LAN|access|17|1|1-4095|GE-0/1/0;GE-0/1/1;GE-0/1/2;GE-0/1/3|
87
88
89
h2. 10G Supplemental Switch
90
91 4
!{width:30%}crs305_1g_4s.jpg!
92 1
93
"MikroTik CRS305-1G-4S":https://mikrotik.com/product/crs305_1g_4s_in
94
95
NOTE: Switch has two operating system options. SWOS is much simpler and therefore preferred for this application.  Note that holding the reset button while powering only resets the RouterOS configuration not the SWOS configuration. To reset SWOS boot into RouterOS and navigate to the terminal, then enter this command:
96
<pre>
97
/system swos reset-config
98
</pre>
99
100
Also to set the boot OS: System > Routerboard > Settings > Boot OS
101
102
h3. Reset Instructions
103
104
* Disconnect all network ports. Disconnect power, using tip of mechanical pencil press reset button and hold. Reconnect power.  When green light flashes several times release the reset button.
105
* Switch will reboot into RouterOS. 
106
* To connect connect to MGMT (1G) port to laptop. Set static address on laptop to 192.168.88.2/255.255.255.0 with gateway 192.168.88.1. Open web browser and navigate to 192.168.88.1. 
107
* Enter basic details, including DHCP setup.
108
* Click Terminal button in upper right corner. 
109
** Enter this command to reset SwOS:
110
<pre>
111
/system swos reset-config
112
</pre>
113
* Next navigate back to Webconfig to change boot configuration: System > Routerboard > Settings > Boot OS and set SwOS. 
114
* Finally click the Reboot option on the side menu.
115
* Disconnect from laptop and connect MGMT port back to regular network. After reboot switch should be accessible at DHCP reservation address: 192.168.100.2.
116
* Default credentials are: admin/<no password>
117
118
h3. Configuration
119
120
To use 1G port as management port go to RSTP tab and uncheck the checkbox next to MGMT. In Port Isolation tab, isolate MGMT from other ports.
121
122
h2. Wireless AP
123
124 4
!{width:20%}wrt3200acm.jpg!
125 1
126
I still use my original Linksys WRT3200ACM but only as a switch and wireless access point.
127
128
h3. WRT3200ACM Hardware Info
129
130
 * https://www.linksys.com/us/p/P-WRT3200ACM/
131
 * https://wikidevi.com/wiki/Linksys_WRT3200ACM
132
 * https://wiki.openwrt.org/toh/linksys/wrt_ac_series
133
 * https://www.smallnetbuilder.com/wireless/wireless-reviews/33030-linksys-wrt3200acm-ac3200-mu-mimo-gigabit-wi-fi-router-reviewed
134
135
h3. DD-WRT Info
136
137
 * "Firmware images":https://dd-wrt.com/support/other-downloads/
138
 * "Firmware images":http://download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (old, slow)
139
140
h3. Version History + Notes
141
142
| *Install Date* | *Version* | *Notes* |
143
|6/2018|!r36168|Sporadic connection/DNS issue; might be due to OpenDNS servers|
144
|7/12/2018|!r36247|removed static DNS; still experienced connection issues|
145
|7/21/2018|!r35531| reverted to older version (can't remember which one was stable for so long...); 9/4/2018 -- stable EXCEPT 5 GHz silently drops out after a couple of days|
146
|9/4/2018|!r36808|random connection issues (nearly always via WiFi) usually resolved within 5 secs; seemed to get better for a while after powercycle|
147
|10/6/2018|!r37139|trying latest... see above (NOTE: worked very well)|
148
|3/19/2019|!r39230|trying latest to see if any changes|
149
|7/8/2019|!r40189|trying latest to see if any changes|
150
151
152
h2. DHCP Registrations
153
154
pfsense Box
155
* *MAC*: dc:4a:3e:81:f5:49
156
* *IP*: 10.0.188 (reserved)
157
158
WRT3200ACM !Router/Wireless AP
159
* *MAC*: 60:38:e0:ba:cc:d1 
160
* *IP*: n/a (192.168.100.1) - NOTE: somehow I screwed up the configuration for the uplink port; need to revisit at some point
161
162
h3. Switch
163
164
| *Device* | *MAC* | *Reserved IP* | *Hostname* | *Notes* |
165
|Aruba S3500-24P          |00:1a:1e:16:1a:c0|192.168.100.0 (static)|aruba-s3500        |main network switch; POE disabled|
166
|WRT3200ACM               |60:38:e0:ba:cc:d1|192.168.100.1            |wrt3200acm|primary WiFi AP (see note above)|
167 2
|MikroTik CRS305-1g-4s|cc:2d:e0:91:42:6e|192.168.100.2            |mikrotik-switch-001|10G network switch; 1G for management|
168 1
|TP-Link Archer C2600    |18:a6:f7:5f:2b:06|192.168.100.3             |archerc2600|secondary WiFi AP|
169
170
171
h3. Wireless Clients
172
173
| *Device*          | *MAC*           | *Reserved IP*   | *Hostname* |
174
|Dell XPS 13 (wifi) |28:b2:bd:39:07:92|192.168.4.2      |xps               |
175
|phone              |b4:f7:a1:8f:98:8d|192.168.4.3      |g6-plus           |
176
|workstation (wifi) |10:f0:05:35:01:fb|192.168.4.4      |enthoo-wifi       |
177
|tablet             |84:55:a5:f7:3a:ec|192.168.4.5      |galaxy-tab-s      |
178
|MPD box            |a0:88:69:8c:33:ef|192.168.4.7      |CI320-wifi        |
179
|Raspberry Pi 3b+   |b8:27:eb:ef:eb:a1|192.168.4.9      |rpi001            |
180
|Raspberry Pi Zero W|b8:27:eb:d9:78:8a|192.168.4.10     |rpi-zw-001        |
181
|!ThinkPad T470     |f8:59:71:4e:ab:f6|192.168.4.12     |t470              |
182
|Raspberry Pi 3b+   |b8:27:eb:59:18:d2|192.168.4.14     |rpi002            |
183
|Raspberry Pi 4b    |dc:a6:32:19:16:70|192.168.4.16     |rpi003            |
184
|new tablet         |70:1f:3c:cd:30:63|192.168.4.17     |galaxy-tab-a      |
185
186
h3. Wired Clients
187
188
| *Device*                                           | *MAC*           | *Reserved IP* | *Hostname* |
189
|Dell XPS 13 laptop                                  |a0:ce:c8:03:a1:c9|192.168.8.2    |xps-eth     |
190
|slingbox                                            |00:0d:c5:cf:0f:94|192.168.8.3    |slingbox    |
191
|[[wiki:Workstation|workstation]]                    |70:85:c2:39:83:67|192.168.8.4    |enthoo      |
192
|[[wiki:CustomComputers/2012/Phalanx|file server]]   |d0:50:99:51:75:a4|192.168.8.6    |phalanx     |
193
|[[wiki:CI320|MPD box]]                              |00:01:2e:58:d8:81|192.168.8.7    |CI320       |
194
|[[wiki:UltimateHTPC|HTPC]]                          |74:d4:35:4f:4e:04|192.168.8.8    |atto        |
195
|Raspberry Pi 3b+                                    |b8:27:eb:ba:be:f4|192.168.8.9    |rpi001-eth  |
196
|[[wiki:CustomComputers/2018/Brutus|brutus]]         |d0:50:99:46:c6:74|192.168.8.10   |brutus      | 
197
|!ThinkPad T470                                      |54:e1:ad:33:0f:0a|192.168.8.12   |t470-eth    |
198
|file2                                               |d0:50:99:51:76:4c|192.168.8.13   |file2       |
199
|Raspberry Pi 3b+                                    |b8:27:eb:0c:4d:87|192.168.8.14   |rpi002-eth  |
200
|red-dwarf                                           |00:25:90:86:4e:e6|192.168.8.15   |red-dwarf   |
201
|Raspberry Pi 4b                                     |dc:a6:32:19:16:6f|192.168.8.16   |rpi003-eth  |
202
|[[wiki:CustomComputers/2020/RedOctober|red-october]]|b4:2e:99:a5:1e:f0|192.168.8.17   |red-october |
203
204
h3. Printer Clients
205
206
| *Device*                | *MAC*           | *Reserved IP* | *Hostname* |
207
|HP Officejet Pro 8610    |34:64:a9:5e:0e:62|192.168.10.1   |hp-pro-8610 |
208
209
h3. Camera Clients
210
211
| *Device*           | *MAC*           | *Reserved IP* | *Hostname* |
212
|Reolink Argus Pro   |10:ce:a9:0b:e0:fe|192.168.12.1   |cam001      |
213
|Reolink RLC-410-5MP |ec:71:db:65:c9:4c|192.168.12.2   |cam002      |
214
215
h3. House Clients
216
217
| *Device*         | *MAC*           | *Reserved IP* | *Hostname* |
218
|Ecobee Thermostat |44:61:32:ac:17:cc|192.168.14.1   |ecobee      |
219
220
h3. Work Clients
221
222
| *Device*            | *MAC*           | *Reserved IP* | *Hostname* |
223 5
|BL Machine|70:85:c2:da:6c:3d|192.168.20.1   |corsair       |
224 1
225
h3. IPMI Interfaces
226
227
| *Device*                                     | *MAC*           | *Reserved IP* | *Hostname*  |
228
|[[wiki:CustomComputers/2012/Phalanx|phalanx]] |bc:5f:f4:fe:6b:cb|192.168.208.1  |phalanx-ipmi |
229
|[[wiki:CustomComputers/2018/Brutus|brutus]]   |bc:5f:f4:fe:7c:af|192.168.208.2  |brutus-ipmi  |
230
231
h2. 10G Network
232
233
The 10G network is -setup as a VLAN (17)- using `10.250.1.0/24` addressing. (I never could get the VLAN working).
234
235
| *Device*                                     | *MAC*           | *Reserved IP* | *Hostname* |
236
|[[wiki:CustomComputers/2012/Phalanx|phalanx]] |0c:c4:7a:1f:00:ae|10.250.1.2     |phalanx-10g |
237
|[[wiki:CustomComputers/2018/Brutus|brutus]]   |24:8a:07:e4:40:c1|10.250.1.3     |brutus-10g  |
238
|[[wiki:Workstation|enthoo]]                   |24:8a:07:e4:39:91|10.250.1.4     |enthoo-10g  |
239
|file2                                         |24:8a:07:e3:04:e1|10.250.1.5     |file2-10g   |
240
241 7
h2. Main Switch - Port Assignments
242 1
243 7
Copper ports:
244 1
245
| *Port* | *Device / Branch* |
246
| 0      | upstairs switch + AP    |
247
| 1      | downstairs bedroom and rec room|
248
| 2      | office (front room)     |
249
| 3      | middle bedroom (work office)|
250 4
| 4      | _unused_              |
251 2
| 5      | _unused_              |
252
| 6      | _unused_              |
253
| 7      | _unused_              |
254
| 8      | _unused_              |
255
| 9      | _unused_              |
256 4
| 10     | _unused_             |
257
| 11     |pfsense (uplink)     |
258
| 12     | brutus                   |
259
| 13     | brutus-ipmi           |
260
| 14     | phalanx                |
261
| 15     | _unused_             |
262
| 16     | _unused_             |
263
| 17     | _unused_             |
264
| 18     | _unused_             |
265
| 19     | _unused_             |
266
| 20     | _unused_             |
267
| 21     | _unused_             |
268
| 22     | _unused_             |
269
| 23     | _unused_             |
270 1
271
Port assignments (SFP_ fiber):
272
273
| *Port* | *Device / Branch* |
274
| 0      | office (to !MikroTik Switch)|
275
| 1      | phalanx 10G             |
276
| 2      | brutus 10G              |
277
| 3      | pfsense LAN (router)    |
278
279
h2. Backup Switch
280
281
* TP-LINK TL-SG1016D - 24 port "dumb" switch
282
283
h2. Resources
284
285
 * "DD-WRT Installation, Upgrade & Basic Setup–Cliff Notes":https://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117
286
 * "DD-WRT Forum - primary WRT3200ACM topic":https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=304086