Lets go ahead and configure out Load Balancer. I wanted to use the fiber ports, but unfortunately I don't have a fiber switch...yet.
This ServerIron XL is used, and still had its old config. on it. This means, I would need to reset the password. The way to do this has already been covered
on this guy's site.
I did a little restructuring.
LB[eth1] -> SW[fa0/15] VLAN2
FW[eth0/6] -> SW[fa0/16] VLAN1 outside 192.168.1.1/24
FW[eth0/7] -> SW[fa0/17] VLAN2 inside 172.16.0.1/24
-
Lets go ahead and configure the Switch port for the Load Balancer.
B1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
B1(config)#int Fa0/15
B1(config-if)#switchport access vlan 2
B1(config-if)#desc LBp1 inside
B1(config-if)#exit
B1(config)#exit
B1#sh run int fa0/15
Building configuration...
Current configuration:
!
interface FastEthernet0/15
description LBp1 inside
switchport access vlan 2
end
B1#
--
Now lets take a look at the LBs eth1.
lb1#conf t
lb1(config)#sh int brief
Port Link State Dupl Speed Trunk Tag Priori MAC Name
1 Up Forward Full 100M None No Normal 00e0.5206.2360
2 Down None None None None No Normal 00e0.5206.2361
3 Down None None None None No Normal 00e0.5206.2362
4 Down None None None None No Normal 00e0.5206.2363
5 Down None None None None No Normal 00e0.5206.2364
6 Down None None None None No Normal 00e0.5206.2365
7 Down None None None None No Normal 00e0.5206.2366
8 Down None None None None No Normal 00e0.5206.2367
9 Down None None None None No Normal 00e0.5206.2368
10 Down None None None None No Normal 00e0.5206.2369
lb1(config)#
We should be good admins, and name things appropriately. We also need to create a VLAN, and assign an Ethernet port to it. Since we are only dealing with one VLAN, there is no reason to tag traffic.
lb1(config)#vlan 2 name inside by port
lb1(config-vlan-2)#untagged ethe 1
added untagged port ethe 1 to port-vlan 2.
lb1(config-vlan-2)#no span
lb1(config-vlan-2)#exit
lb1(config)#sh vlan 2
Total PORT-VLAN entries: 2
Maximum PORT-VLAN entries: 9
PORT-VLAN 2, Name inside, Priority Normal, Spanning tree Off
Untagged Ports: 1
Tagged Ports: None
Uplink Ports: None
lb1(config)#
Next, lets go ahead and give our Load Balancer an IP, so we can get off the console. I also took the opportunity to add a resolver.
lb1(config)#ip address 172.16.0.254/24
lb1(config)#ip default-gateway 172.16.0.1
lb1(config)#ip dns server-address 8.8.8.8
lb1(config)#
Next, clear any old crypto keys, and/or generate a new one.
crypto key zeroize -- will get rid of the old RSA key.
crypto key generate rsa -- will create a new RSA key.
At this point, if everything went as planned, you should be able to SSH in.
[root@optimus ~]# ifconfig | grep inet\ addr
inet addr:172.16.0.10 Bcast:172.16.0.255 Mask:255.255.255.0
inet addr:127.0.0.1 Mask:255.0.0.0
[root@optimus ~]# ssh -l root 172.16.0.254
SSH@lb1>en
User Name:root
Password:
SSH@lb1#
Don't forget to "write mem"!