switchport general allowed vlan add 5,10,20,30,40,50,60,70 tagged
exit
!
interface ethernet 1/g24
switchport access vlan 60
exit
!
interface ethernet 1/g25
switchport access vlan 10
exit
!
interface ethernet 1/g26
switchport access vlan 10
exit
console#show ip route
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static B - BGP Derived, IA - OSPF Inter Area E1 - OSPF External Type 1, E2 - OSPF External Type 2 N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
S 0.0.0.0/0 [1/0] via 192.168.5.2, vlan 5 C 192.168.5.0/29 [0/1] directly connected, vlan 5 C 192.168.10.0/24 [0/1] directly connected, vlan 10 C 192.168.20.0/24 [0/1] directly connected, vlan 20 C 192.168.40.0/24 [0/1] directly connected, vlan 40 C 192.168.50.0/24 [0/1] directly connected, vlan 50 C 192.168.60.0/24 [0/1] directly connected, vlan 60 C 192.168.70.0/24 [0/1] directly connected, vlan 70
With that i've hooked up 2 PC - one with 192.168.10.111 another 192.168.60.111 , both could ping the switch and each other. So that's good news.
The not so good news and my initial problem is still.... i can't ping the router at 192.168.5.2 nor my router could ping the switch at 192.168.5.1
Current config for Cisco Router 881:
interface FastEthernet0 description Link to Switch switchport access vlan 5 no ip address ! interface FastEthernet1 no ip address ! interface FastEthernet2 no ip address ! interface FastEthernet3 description DMZ switchport access vlan 70 no ip address ! interface FastEthernet4 description INTERNET WAN PORT ip address {EXTERNAL IP} 255.255.255.254 ip nat outside ip virtual-reassembly in duplex full speed 100 ! interface Vlan5 ip address 192.168.5.2 255.255.255.248 no ip redirects no ip unreachables ! interface Vlan70 ip address {EXTERNAL IP} 255.255.255.240 ! ip forward-protocol nd ip http server ip http access-class 23 ip http authentication local ip http secure-server ip http timeout-policy idle 60 life 86400 requests 10000 ! ip nat inside source list NAT interface FastEthernet4 overload ip route 0.0.0.0 0.0.0.0 {EXTERNAL IP} ip route 192.168.10.0 255.255.255.0 192.168.5.1 ip route 192.168.60.0 255.255.255.0 192.168.5.1 ! ip access-list extended NAT permit ip 192.168.10.0 0.0.0.255 any !
show ip route Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP + - replicated route, % - next hop override
Gateway of last resort is {EXTERNAL IP} to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 115.70.162.174 {EXTERNAL IP}/8 is variably subnetted, 2 subnets, 2 masks C {EXTERNAL IP}/31 is directly connected, FastEthernet4 L {EXTERNAL IP}/32 is directly connected, FastEthernet4 192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.5.0/29 is directly connected, Vlan5 L 192.168.5.2/32 is directly connected, Vlan5 S 192.168.10.0/24 [1/0] via 192.168.5.1 S 192.168.60.0/24 [1/0] via 192.168.5.1
samuelthan
15 Posts
2466
1
Posted December 13th, 2012 17:00
Hi Daniel,
The route plugs into a modem.
Directly connect the client to the router, allows the client to access the internet. (Of course i had to tweak the config)
Something weird but a bit of progress.
On the PC. since i'm manually entering the IP address, i've not enter the DNS
But once i manually entered DNS enteries on my PC. I manage to connect to the internet, i could ping the internet/website , traceroute looks good
--- At the later stage, my plan is to have a Server handles the DHCP and DNS, so by then i could set my ip to automatic assigned on my PC
I'll do some more research, i think my concepts of some foundations on networking is shaky at the moment.