12-03-2018 02:30 AM - edited 03-05-2019 11:05 AM
Hello,
because my last question was a bit of missunderstanding I created a new one.
I have an Cisco SG350-20 Switch, which is a Layer 3 switch. To this switch are connected a Notebook A with the IP 192.168.3.1 which should simmulate a server (just need to simmulate the IP-Adresse, something I can get access to) and another Notebook B which is in the Network 192.168.2.1.
My Notebook B needs access to the Notebook A and also a connection to the Internet.
The IP of the router is 192.168.0.1.
I really don't know how to configure this, but my instructor said I can do it with static routes on the switch. I don't have access to the router so I can't configure anything on this.
Maybe it's to easy but all of my tryings are running into nowhere and I really need some help.
Thank you!
12-03-2018 03:22 AM - edited 12-03-2018 03:25 AM
Hello
Do you need to used static routes?
Below is a very basic L3 switch performing inter-vlan routing enabled and one static route towards the rtr:
Interface vlan 10
Description RTR vlan
ip address 192.168.0.254 255.255.255.0
no shut
Interface vlan 2
Description Notebook B VLAN
ip address 192.168.2.254 255.255.255.0
no shut
Interface vlan 3
Description Notebook A VLAN
ip address 192.168.3.254 255.255.255.0
no shut
vlan 2.3.10
exit
ip routing
int x/x
description Access=Port -to- Rtr
switchport mode access
switchport access vlan 10
spanning-tree portfast
no shut
int x/x
description Access-Port -to- HostB
switchport mode access
switchport access vlan 2
spanning-tree portfast
no shut
int x/x
description Access-Port -to- HostA
switchport mode access
switchport access vlan 3
spanning-tree portfast
no shut
ip route 0.0.0.0 0.0.0.0 192.168.0.1
12-03-2018 04:20 AM
12-03-2018 05:33 AM
Hi
The topology is:
A router is connected to the switch and 2 computers as well.
If the router support sub-interfaces the gateway for each vlan should be on the router and configured under the sub interfaces, also the router must has a default route pointing to the ISP and configure a NAT.
In the other hand the switch is layer 3, so you can configure the default gateway for each vlan through SVI (interface VLAN), then create a default route pointing to the router who will be working with a NAT. (The router must know how to reach the internal networks it can be static route)
Hope it is useful
:-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide