Home

Monday, 23 September 2013

Configuring Vlan part 2







show run fa0/8
s3(config-if)#switchport mode access
s3(config-if)#switchport access vlan10
//this adds pc2 v10
.

s2(config)#do show vlan
s2(config)#switchport access vlan 10
//this adds pc1 v20
.

vlan 1 =192.168.1.0/24
vlan 10 =192.168.10.0/24(sys1ip)
vlan 20 =192.168.20.0/24(sys2ip)


s1(config)#interface vlan 20
s1(config-if)#ip address 192.168.20.1

 
s1#show ip interface brief
s1(config)#ip routing

//enable routing

r2#conf t
r2(config)#interface fastethernet 0/0.20

//creating sub interfaces

r2(config-subif)#encapsulation dot1q 20
r2(config-subif)#ip address 192.168.20.1 255.255.255.0


r2(config)#interface fastethernet 0/0.10
//creating sub interfaces
r2(config-subif)#encapsulation dot1q 10
r2(config-subif)#ip address 192.168.10.1 255.255.255.0

s3#show cdp neighbors
s3(config)#interface 0/4
s3(config-if)# switchport mode trunk


r1#show ip route
r1#conf t
r1#ip route 192.168.20.0 255.255.255.0 192.168.1.2.



Now completing this try to ping around switches and its host within Vtps

Configuring Vlan and VTP part 1


 The above is the topology.(See about Vtp and Vlan basics here)
To do's  assign ips as mentioned in the diagram also add Vlans Ips too then follow these steps.

Rules
1.Configure Trunks
2.Configure Vtp
3.Configure Vlans
4.Assighn ports to Vlans


Isl Inter switch link(between cisco)
802.1q  protocol
Master switch  is S1
s1(config-if)#switchport trunk encapsultion dot1q
s1(config-if)#switchportmode trunk

s1(config-if)#interface range fastethernet 0/1 - 10
s1(config-if-range)#swich port mode access
s1(config-if-range)#interface range fastethernet 0/13 -23
s1(config-if-range)#swich port mode access

s1#show run


s2(config-if)#switchportmode trunk
//no encapsulation needed as it is supported by dot1q
s2(config-if)#interface range fastethernet 0/2 - 24
s2(config-if-range)#swich port mode access

s2#show run

s3(config-if)#switchportmode trunk
//no encapsulation needed as it is supported by dot1q
s3(config-if)#interface range fastethernet 0/2 - 24
s3(config-if-range)#swich port mode access

s3#show run

s1# show vtp status

s1#  vtp domain nuggetworld  
//Used to create Vtp domain name(used to identify master).

Switch 2 and 3 adapted nuggetworld as nuggetworld
note:-Master is connected to other with the power as Trunk.

Other 2 switches are access mode with client.



s2(config)#vtp mode client
s3(config)#vtp mode client
 

cannot create vlan from a client mode because it is only done only by server.
 

s1#van 10
s1(config-vlan)#name sales

s3#sh  interfaces fastethernet 0/1 switchport
//displays encapsulation details
administrative<=>dynamic
operational<=>access.

s3#show interfaces trunk


















CISCO VTP Trunking



Trunking (AKA TAGGING) Passes multi-vlan Information between switches.
places VLAN Information into each frame.
Layer 2 feature.

VTP MODES

Server(Default)
-Power to change Vlan Information
-sends and recieves VTP updates
-saves Vlan configuration

Client

-cannot change information
-sends and receives VTP updates
-does not save Vlan configuration.

Transport
-power to change Vlan information
-forwards VTP updates.
-does not listen to VTP advertisements
-saves Vlan configuration.

Concept of Vlan


Vlans logically group and Isolates users on its network and Trunk Port connects switches.
1.Vlans logically group's users.
2.Segments broadcasts domains.
3.Subset correlation.
4.Access control.
5.Quality of service.

"Vlan =BD=Subnet".


Flexiblity of Vlans:-

-Segmentation of users without router.
-no longer limited to physical location
-tighter control of broadcasts.

Cisco Configuration Gns 3(Basic 1)-switch and routers






Levels of previlleges:-
1.router>User Mode
2.enable# Previllege mode
Execute show commands from previlleged mode only.
3.(config)# Terminal Mode
Host name,Access-lists,etc...
4.(config-if)#InterfaceMode
set ip address and configure Interfaces.

1.Host name allows you to add the router name or switch name.


r1(config)#hostname Google
google(config)#
google(config)#
google(config)#
google(config)#interface Vlan 1
google(config-if)#ip address 192.168.1.10 255.255.255.0
google(config-if)#no shutdown

google(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
EXIT
google(config)#IP Default-Gateway 192.168.1.1

google#Show IP Interface brief
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/1        unassigned      YES manual down                  down



google(config)#interface fastEthernet 0/1
google(config-if)#DUPLEX ?
  auto  Enable AUTO duplex configuration
  full  Force full duplex operation
  half  Force half-duplex operation
google(config-if)#DUPLEX FU
google(config-if)#DUPLEX FUll
google(config-if)#SPEED
google(config-if)#SPEED ?
  10    Force 10 Mbps operation
  100   Force 100 Mbps operation
  auto  Enable AUTO speed configuration
google(config-if)#SPEED 100
google(config-if)#DES
google(config-if)#DEScription ?
  LINE  Up to 240 characters describing this interface
google(config-if)#DEScription iNTERNET ROUTER CONNECTION

google(config-if)#SHOW CDP NEIGH
google(config-if)#SHOW CDP NEIGH
google(config-if)#EXIT
google(config)#EXIT
google#
%SYS-5-CONFIG_I: Configured from console by console
S
% Ambiguous command: "S"
google#SHOW CDP NEIGHBO
google#SHOW CDP NEIGHBORS
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID    Local Intrfce   Holdtme    Capability   Platform    Port ID
google#
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
google#CONF T
Enter configuration commands, one per line.  End with CNTL/Z.
google(config)#INTErface FAStEthernet 0/1
google(config-if)#NO SH
google(config-if)#NO SHutdown
google(config-if)#NO SHutdown
google(config-if)#EXIT
google(config)#EXIT
google#
Enter configuration commands, one per line.  End with CNTL/Z.
google(config)#INTErface FAStEthernet 0/1
google(config-if)#NO SHutdown
google(config-if)#EXIT

DHCP IP Helper address configuration


Objective 1:-

R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#ip dhcp pool LAB_POOL2
R1(dhcp-config)#network 10.116.20.0 255.255.255.0
R1(dhcp-config)#default-router 10.116.20.2
R1(dhcp-config)#domain-name TESTLAB.LOCAL
R1(dhcp-config)#dns-server 10.116.18.6 10.116.18.7
R1(dhcp-config)#end

This a very basic DHCP setting in a router.
Review Last Tutorial

Objective 2. – On SWITCH 1 configure the VLAN20 interface with an IP Helper address that points to 10.116.10.1.

SW1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
SW1(config)#interface vlan 20
SW1(config-if)#ip helper-address 10.116.10.1
SW1(config-if)#end
SW1#
%SYS-5-CONFIG_I: Configured from console by console
SW1#


Objective 3. – Verify that R2 can receive a DHCP address from R1 in the 10.116.20.0/24 network.

R2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#interface FastEthernet0/0
R2(config-if)#shutdown
R2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
R2(config-if)#no shut
R2(config-if)#end
R2#
%SYS-5-CONFIG_I: Configured from console by console
R2#
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2#
%DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 10.116.20.3, mask 255.255.255.0, hostname R2

R2#ping 10.116.10.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.116.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/108/164 ms
R2#

DHCP and DNS Configuration on cisco router.

We are going to see ,how  to set a DHCP and DNS on a Cisco Router for GNS3.
Step 1:
RouterR0#configure terminal
step 2:
RouterR0(config)#ip dhcp-pool "HqOffice"
syntax:-ip dhcp-pool <poolname>.
This Helps you to create a Dhcp group.
step 3:
RouterR0(Dhcp-config)#default router 10.0.0.1
This is your default router that assigns Dynamic Ip address.
step 4:
RouterR0(Dhcp-config)#Dns-Server 8.8.8.8
This is your name resolution server address.
step 5:
RouterR0(dhcp-config)#lease 5 0 0
syntax:-lease(days ,hours ,minutes) .This helps you to renew ip address and prevent ip wastage.


You are done ,In next tutorial w would see how a router acts as a helper in providing Dhcp ip's from a DHCP master router.


Monday, 16 September 2013

About Cisco and its Services ,
Cisco Systems, Inc. is an American multinational corporation headquartered in San Jose, California, that designs, manufactures, and sells networking equipment.

Headquarters: San Jose, CA, United States of America.
CEO: John T. Chambers.
Founded: 1984, San Francisco, California, United States.
Founders: Sandra Lerner, Leonard Bosack

provides  enterprise networking and service providers.

Borderless networks ,WAN acceleration, energy and building management systems and media aware networks.

IP video and phones, TelePresence, HealthPresence, Unified Communications, Call Center systems, Enterprise social networks and Mobile applications.

Datacenter and Virtualization.
IP NGN (Next Generation Networks).
Small businesses include home businesses and (usually technology-based) start ups.
Routers and switches
Security and surveillance
IP cameras, data and network security etc.
Voice and conferencing
VOIP phones and gateway-systems, WebEx, video conferencing
Wireless
WiFi Access points.
Network storage systems.
Persistent storage on networks, either in the traditional sense or in a cloud-like manner.

Home user refers to individuals or families who require these kinds of services.

cable modems.


Cisco UCS blade servers



WebEx Collaboration Tools

Other
Cisco Active Network Abstraction
Cisco Fabric Manager
Data Center Management and Automation—Cisco Intelligent Automation
Cisco Tidal Enterprise Scheduler
CiscoView
CiscoWorks Network Management software
Cisco Eos
Packet Tracer, didactic network simulator
Cisco Network Magic Pro
Cisco Quad
Cisco Security Manager
Cisco SDM

Cisco Career Certifications