Subnet configuration...

live_wirelive_wire Member Posts: 21 ■□□□□□□□□□
Hi guys.
I am confused as to how should i configure the router and a switch .
Scenario.
1 router
2 switches A and B

Switch A network 192.168.10.0/25
Switch B network 192.168.10.128/25

as u can c that there are two subnets ... but i am but confused regarding the configuration part, i understand i have to go in for a subinterface configuration on the router, but how do i configure the switches.

srry , but the question / scenario may seem stupid.

plz take a look at the diagram ...

simpleyo9.jpg

Comments

  • NeonNoodleNeonNoodle Member Posts: 92 ■■□□□□□□□□
    You can start by configuring two VLANs on Switch A. I suppose the PCs should be on different VLANs, so make sure they are.
    When you're finished with that you'll have to set up trunking between Switch A and the Router.

    Enjoy!
    I recognize the lion by his paw.
    --Jacob Bernoulli
  • rakemrakem Member Posts: 800
    live_wire wrote:
    Hi guys.
    I am confused as to how should i configure the router and a switch .
    Scenario.
    1 router
    2 switches A and B

    Switch A network 192.168.10.0/25
    Switch B network 192.168.10.128/25

    as u can c that there are two subnets ... but i am but confused regarding the configuration part, i understand i have to go in for a subinterface configuration on the router, but how do i configure the switches.

    srry , but the question / scenario may seem stupid.

    plz take a look at the diagram ...

    simpleyo9.jpg

    yes you have to configure subinterfaces on the routers, each subinterface has an IP address that is in a different VLAN.

    on the switches you just need to actually set up the VLANs with something like the following:

    switch>en
    switch#vlan database
    switch(vlan)#vlan 2 name sales
    VLAN 2 added:
    Name: sales
    switch(vlan)#vlan 3 name accounts
    VLAN 3 added:
    Name: accounts
    switch(vlan)#vlan 4 name blah
    VLAN 4 added:
    Name: blah
    switch(vlan)#exit
    APPLY completed.
    Exiting....
    switch#

    you will need to create the VLANs on both switches unless you are using VTP.

    you then you the need to assign the switch ports to the VLANs you want them to be in so:

    switch>en
    switch#conf t
    Enter configuration commands, one per line. End with CNTL/Z
    switch(config)#int fa0/1
    switch(config-if)#switchport access vlan 2
    switch(config-if)#int fa0/2
    switch(config-if)#switchport access vlan 3
    switch(config-if)#int fa0/4
    switch(config-if)#switchport access vlan 4

    this sets up the ports as access ports in the specified VLANs.

    then as mentioned above, the ports that connect the switches together need to be trunk ports, so:
    switch(config)#int fa0/10
    switch(config-if)#switchport mode trunk
    switch(config-if)#

    as mentioned youcould use VTP to make the whole process easier, but this is basically how its done.

    Clients need to be assigned IP addresses based up the VLAN they are in and they also use a specified subinterface as a gateway, deepening on what VLAN they are in
    CCIE# 38186
    showroute.net
  • rjbarlowrjbarlow Member Posts: 411
    live_wire, are You aware that switches do not break the net in broadcast domains? In order to make Your purpose You have to create VLANs on the switches like NeonNoodle right said.
    Pork 3
    Maindrian's music

    WIP: 70-236, 70-293 and MCSE.
  • live_wirelive_wire Member Posts: 21 ■□□□□□□□□□
    thanx a bunch guys...i got it..i think i can proceed now.
    Cheers.
  • MikdillyMikdilly Member Posts: 309
    Could you configure everything at once for vlan 2 by doing:

    int fa0/1
    switchport access vlan 2 name sales
Sign In or Register to comment.