Link to home
Start Free TrialLog in
Avatar of itubaf
itubafFlag for Bahrain

asked on

VLANS Issue

Dear Experts,

i have two networks, 10.10.10.x and 192.168.168.x
i have one C3750G switch, i want both network to work please help.

i shoudl be able to ping both interfaces.
Avatar of sweetfa2
sweetfa2
Flag of Australia image

You need a router somewhere.

Add a static route to the router with the specific interface to reach each network.
Avatar of itubaf

ASKER

thanks for reply
i have Sonicwall firewall/router but i dont know how to add routes in it.
Forget about SonicWall. at least for now. You have L3 switch (which is basically a router) so it's better to make L3 routing works directly on the switch.

So, to enable routing you need to have "ip route" command issued in config mode. I hope that you know how to get to config mode. If not, ask.

Also, you need two interfaces configured with 2 different networks on it.

Possibility 1. with Vlans.

from config mode you issuse these:
vlan 10
name network1
exit
int vlan 10
ip address 10.10.10.1 255.255.255.0
no shut
exit
vlan20
name network2
exit
int vlan20
ip address 192.168.168.0 255.255.255.0
no shut
exit
int gi 0/1
switchport mode access
switchport access vlan 10
no shut
exit
int gi 0/2
switchport mode access
switchport access vlan 20
no shut
exit

Possibility 2. configure address directly on interfaces

int gi 0/1
no switchport
ip address 10.10.10.1 255.255.255.0
no shut
exit
int gi 0/2
no switchport
ip address 192.168.168.0 255.255.255.0
no shut
exit

Also in both cases, don't forget to save config and make it persistent across reboots.

I would suggest to configure vlans. It gives you more possibilities and versatility.
Avatar of itubaf

ASKER

Thanks slakic, i think Vlan option are good, but i would like to know if i create two vlan do i need to add persistent routes? if yes then we need to think other solution as i have many host @ both location replicating data and persistent routes may be very complicated.

i want a solution without persistent routes, i so have L3 switch and i can use.
SOLUTION
Avatar of slakic
slakic
Flag of Bosnia and Herzegovina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Soulja
Soulja
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial