Intervlan Help

Home Forums Networking Cisco Routers & Switches How-to Intervlan Help

This topic contains 3 replies, has 2 voices, and was last updated by Avatar kevinguerreiro 8 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Avatar
    kevinguerreiro
    Participant
    #153822

    Hey guys, i need a little help over here. I have a Cisco Router 2600 and a Cisxo 3500XL. What is happening is that i cant give internet to my computers. The ADSL Router is ip 192.168.2.1. The ip of the Cisco 2600 is 192.168.2.2 for the Vlan2 and 192.168.0.2 for the Vlan1. The 2600 is dhcp server for the vlans, the only problem is that i can’t get a way to get internet on both vlans, because i have to set the gateway for the pc connected to the switch 192.168.2.2 so that the vlans can comunicate , and not 192.168.2.1. The config are pasted below. I know that i have to add some line for default routing? i just cant find the correct one.

    Cisco Router 2600 Config:

    enable
    vlan database
    vlan 10 name KCI
    vlan 20 name Albubytes
    exit
    conf t
    hostname KCICISCOR
    int fa0/0
    no ip address
    no shutdown
    int fa0/0.10
    encapsulation dot1q 10
    ip add 192.168.0.2 255.255.255.0
    int fa0/0.20
    encapsulation dot1q 20
    ip add 192.168.2.2 255.255.255.0
    service dhcp
    ip dhcp pool KCI
    network 192.168.0.0 255.255.255.0
    default-router 192.168.0.2
    dns-server 192.168.2.1
    lease 7
    domain-name kci.local
    exit
    ip dhcp excluded-address 192.168.0.1 192.168.0.99
    ip dhcp excluded-address 192.168.0.250 192.168.0.254
    ip dhcp pool Albubytes
    network 192.168.2.0 255.255.255.0
    default-router 192.168.2.2
    dns-server 192.168.2.1
    lease 7
    domain-name albubytes.local
    exit
    ip dhcp excluded-address 192.168.2.1 192.168.2.99
    ip dhcp excluded-address 192.168.2.250 192.168.2.254
    exit

    Now the Switch:

    enable
    vlan database
    vlan 10 name KCI
    vlan 20 name Albubytes
    exit
    conf t
    hostname KCICISCOS
    int fa0/3
    switchport mode access
    switchport access vlan 10
    int fa0/4
    switchport mode access
    switchport access vlan 10
    int fa0/5
    switchport mode access
    switchport access vlan 10
    int fa0/6
    switchport mode access
    switchport access vlan 10
    int fa0/7
    switchport mode access
    switchport access vlan 10
    int fa0/8
    switchport mode access
    switchport access vlan 10
    int fa0/9
    switchport mode access
    switchport access vlan 10
    int fa0/10
    switchport mode access
    switchport access vlan 10

    ..
    ..
    int gi0/1
    switchport mode access
    switchport access vlan 10
    int gi0/2
    switchport mode access
    switchport access vlan 20
    int fa0/1
    switchport mode trunk
    switchport trunk encapsulation dot1q
    exit

    Hope anyone can help me.

    Regards
    Kevin Guerreiro

    Avatar
    Daze
    Member
    #278660

    Re: Intervlan Help

    The 2600 is connected to the 3500XL via fa0/1?

    Avatar
    kevinguerreiro
    Participant
    #350496

    Re: Intervlan Help

    Hi there, the 2600 is conected throw int fa0/0 in trunk mode to int fa0/1 of the switch 3500xl.

    Avatar
    Daze
    Member
    #278661

    Re: Intervlan Help

    Also, the upstream ADSL Router would have to know about the 192.168.0.0 network also.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.