• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

Need basic config for my 3560g

I need help on setting up new switch for my office. Here is my scenerio:

I have a Cisco 3560g 24 port switch w/4 sfp's that will connect directly to my ISP's Cisco 1841.
Info from ISP:
IP address : 12.70.129.120
subnet: 255.255.255.248
Default gateway: 12.70.129.121

My inside network is 192.168.1.0
w/16 workstations and 2 unmanaged switch's(they will connect to the sfp ports)

Can anyone assist me with a config template to allow workstations to be networked and be able to access the internet?

Thanks in advance.
 
0
szav
Asked:
szav
  • 3
  • 2
1 Solution
 
RTh0037Commented:
!
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname <Name>
!
enable secret 5 TBD
!
username TBD
no aaa new-model
vtp mode transparent
ip subnet-zero
no ip domain-lookup
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 2
 name LAN
!
interface GigabitEthernet0/1
 description To firewall LAN
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 no cdp enable
!
interface GigabitEthernet0/2
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/3
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/4
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/5
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/6
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/7
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/8
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/9
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/10
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/11
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/12
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/13
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/14
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/15
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/16
 description LAN Host
 switchport access vlan 2
 switchport mode access
 switchport block multicast
 switchport block unicast
 spanning-tree portfast
!
interface GigabitEthernet0/17
 description Not Used
 shutdown
!
interface GigabitEthernet0/18
 description Not Used
 shutdown
!
interface GigabitEthernet0/19
  description Not Used
  shutdown
!
interface GigabitEthernet0/20
  description Not Used
  shutdown
!
interface GigabitEthernet0/21
  description Not Used
  shutdown
!
interface GigabitEthernet0/22
 description Not Used
 shutdown
!
interface GigabitEthernet0/23
 description Not Used
 shutdown
!
interface GigabitEthernet0/24
 description Not Used
 shutdown
!
interface GigabitEthernet0/25
 description Uplink to unmanaged
 switchport access vlan 2
 switchport mode access
!
interface GigabitEthernet0/26
 description Uplink to unmanaged
 switchport access vlan 2
 switchport mode access
!
interface GigabitEthernet0/27
 description Not Used
 shutdown
!
interface GigabitEthernet0/28
 description Not Used
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan2
 ip address 192.168.1.0 255.255.255.0
 no ip route-cache
ip default-gateway (Cisco 1841 interface)
ip classless
ip http server
!
!
control-plane
!
banner motd ^C
WARNING!!!: Unauthorized access and use of this network will be vigorously prosecuted.
WARNING!!!: All activity is monitored and privacy should not be expected while using this system.^C
!
line con 0
line vty 0 4
 login local
line vty 5 15
 no login
!
end
0
 
szavAuthor Commented:
Thanks RTh0037 for the quick reply. Quick question: Would this need to be natted? If so, what configuration would need to be placed? Would I need to configure anything to allow vpn to our server?

Thanks again RTh0037.

0
 
szavAuthor Commented:
I tried the configs in my environment and can't connect to the internet. I can ping everything inside my network, just not outside. I enabled ip routing and an static ip route. When I issue an sh ip route command, the entry I can see is my inside network w/no static routes. Can anyone tell me what I am doing wrong?

Thank you
0
 
RTh0037Commented:
What does the config look like on the 1841?  I assumed this was being used as the security layer for your LAN.  With this assumption, you would need a interface on that 1841 in the same subnet as the 192.168 subnet.

0
 
szavAuthor Commented:
It's fixed. Your configs worked brother. I appreciate all the help RTh0037.

Regards.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now