UNSOLVED

LucaSalvatore

updated

20 years ago

L

LucaSalvatore

1 Rookie

•

13 Posts

0

9473

April 19th, 2007 00:00

Managing VLANed switches from outside the VLAN

In one of our remote offices I have configured VLANs on three 34xx switches. Each switch only has one VLAN on it, for example: Switch1 = VLAN2 Switch2 = VLAN3 Switch 3 = VLAN4 On all these switches i have assigned an IP address based up the VLAN that they are in. So Switch1 has an IP address in vlan2, switch3 in vlan2 and switch4 in vlan3. So with this setup i can only manage the switches from devices that are in the same VLAN as the switch. I need to be able to manage the switches from a completely different network! If i give a switch in VLAN2 an address in VLAN3 will i be able to manage the switch from vlan3? and the same with the other switches, if they have addresses in all VLANs would i be able to manage any switch from any VLAN? Also as mentioned these switches are in a remote office. with a range of 10.1.24.0/26 Iam in head office in a different state with a range of 10.1.21.0/24. Is there a way that i can setup these switches to be managed from my network? thanks!
  • bh1633

    909 Posts

    329

    0

    Posted April 19th, 2007 14:00

    Not enough information:
     
    Assumint they are all configuration similarly, post one of the 34xx config files.
    What are the 34xx switches connected to in your office?  Can you post that switch's config also?
     
    In general, if you need to manage the switches from a different network, you need a router, or you need to add a VLAN to the switch that is in the same network that you want to manage from.
  • LucaSalvatore

    1 Rookie

    •

    13 Posts

    329

    0

    Posted April 22nd, 2007 23:00

    The 34xx switches are in a remote office. They are all connected together and all of the VLANs have full communication between each other. i.e they go through a router.

    Here is the config from one switch, all other switches have pretty much the same config except VLAN numbers are different:

    CONFIG START

    interface port-channel 1
    switchport mode general
    exit
    interface range ethernet e(1-46),g(3-4)
    switchport mode general
    exit
    interface range ethernet g(1-2)
    switchport mode trunk
    exit
    vlan database
    vlan 2-4
    exit
    interface ethernet e1
    switchport general pvid 2
    exit
    interface ethernet e2
    switchport general pvid 2
    exit
    interface ethernet e3
    switchport general pvid 2
    exit
    interface ethernet e4

    switchport general pvid 2
    exit
    interface ethernet e5
    switchport general pvid 2
    exit
    interface ethernet e6
    switchport general pvid 2
    exit
    interface ethernet e7
    switchport general pvid 2
    exit
    interface ethernet e8
    switchport general pvid 2
    exit
    interface ethernet e9
    switchport general pvid 2
    exit
    interface ethernet e10
    switchport general pvid 2
    exit
    interface ethernet e11
    switchport general pvid 2




    exit
    interface ethernet e12
    switchport general pvid 2
    exit
    interface ethernet e13
    switchport general pvid 2
    exit
    interface ethernet e14
    switchport general pvid 2
    exit
    interface ethernet e15
    switchport general pvid 2
    exit
    interface ethernet e16
    switchport general pvid 2
    exit
    interface ethernet e17
    switchport general pvid 2
    exit
    interface ethernet e18
    switchport general pvid 2
    exit
    interface ethernet e19
    switchport general pvid 2
    exit
    interface ethernet e20
    switchport general pvid 2
    exit
    interface ethernet e21
    switchport general pvid 2
    exit
    interface ethernet e22
    switchport general pvid 2
    exit
    interface ethernet e23
    switchport general pvid 2
    exit
    interface ethernet e24
    switchport general pvid 2
    exit
    interface ethernet e25
    switchport general pvid 2
    exit
    interface ethernet e26
    switchport general pvid 2
    exit
    interface ethernet e27
    switchport general pvid 2
    exit
    interface ethernet e28
    switchport general pvid 2
    exit
    interface ethernet e29
    switchport general pvid 2
    exit
    interface ethernet e30
    switchport general pvid 2
    exit
    interface ethernet e31
    switchport general pvid 2
    exit
    interface ethernet e32
    switchport general pvid 2
    exit
    interface ethernet e33
    switchport general pvid 2
    exit
    interface ethernet e34
    switchport general pvid 2
    exit
    interface ethernet e35
    switchport general pvid 2
    exit
    interface ethernet e36
    switchport general pvid 2
    exit
    interface ethernet e37
    switchport general pvid 2
    exit
    interface ethernet e38
    switchport general pvid 2
    exit
    interface ethernet e39
    switchport general pvid 2
    exit
    interface ethernet e40
    switchport general pvid 2
    exit



    interface ethernet e41
    switchport general pvid 2
    exit
    interface ethernet e42
    switchport general pvid 2
    exit
    interface ethernet e43
    switchport general pvid 2
    exit
    interface ethernet e44
    switchport general pvid 2
    exit
    interface ethernet e45
    switchport general pvid 2
    exit
    interface ethernet e46
    switchport general pvid 2
    exit
    interface ethernet g3
    switchport general pvid 2
    exit
    interface ethernet g4


    switchport general pvid 2
    exit
    interface port-channel 1
    switchport general pvid 2
    exit
    interface range ethernet e(2-46),g(3-4)
    switchport general allowed vlan add 2 untagged
    exit
    interface ethernet e1
    switchport general allowed vlan add 2
    exit
    interface range ethernet g(1-2)
    switchport trunk allowed vlan add 2
    exit
    interface ethernet e1
    switchport general allowed vlan add 3
    exit
    interface ethernet g1
    switchport trunk allowed vlan add 3
    exit
    interface ethernet e1
    switchport general allowed vlan add 4

    interface ethernet g1
    switchport trunk allowed vlan add 4
    exit
    interface vlan 1
    ip address 10.1.24.250 255.255.255.0
    9:59 AM 23/04/2007exit
    interface vlan 2
    ip address 10.1.24.5 255.255.255.192
    exit
    ip default-gateway 10.1.24.1
    username admin password 6d89adadc3d5123a77f459e5b6797b6d level 15 encrypted

    Default settings:


    SW version 2.0.0.21 (date 15-Jan-2007 time 15:48:02)

    Fast Ethernet Ports
    ==========================
    no shutdown
    speed 100
    duplex full
    negotiation
    flow-control off
    mdix auto
    no back-pressure

    Gigabit Ethernet Ports
    =============================
    no shutdown
    speed 1000
    duplex full
    negotiation
    flow-control off
    mdix auto
    no back-pressure

    [0mMore: , Quit: q, One line:



    interface vlan 1
    interface port-channel 1 - 8

    spanning-tree
    spanning-tree mode STP

    qos basic
    console#

    END CONFIG


    So basically all switchports are members of the same VLAN and there are trunk ports connecting to the other switches.

    This is the same on every switch except that the VLANs are different. the network that im in is a 10.1.21.0 /24 network. Which is in Sydney.

    The network that I have just implemented VLANs in is in Brisbane and its range is 10.1.24.0 /26 10.1.24.0 VLAN2 Switch1 10.1.24.64 VLAN3 Swtich2 10.1.24.128 VLAN4 Switch3 I want to be able to manage all the switches from my 10.1.21.0 network as well as manage switch 2 and 3 from switch 1.

    As mentioned the router allows communication between all VLANs and all networks.
  • bh1633

    909 Posts

    329

    0

    Posted April 23rd, 2007 12:00

    Decide which vlan you are going to use to manage the switches and assign unique IP addresses in that vlan's network to each switch.  For example if you decide to manage all switches via vlan 2:
     
    switch 2:
    console (config)# ip default-gateway 10.1.24.1
    console (config)# interface vlan 2
    console (config-ip)# ip address 10.1.24.2 /26
     
    switch 3:
    console (config)# ip default-gateway 10.1.24.1
    console (config)# interface vlan 2
    console (config-ip)# ip address 10.1.24.3 /26
     
    switch 4:
    console (config)# ip default-gateway 10.1.24.1
    console (config)# interface vlan 2
    console (config-ip)# ip address 10.1.24.3 /26
     
    router:
    console (config)# interface vlan 2
    console (config-ip)# ip address 10.1.24.1 /26
    console (config)# exit
    console (config)# interface vlan xxx
    console (config-ip)# ip address 10.1.21.1 /24