0% found this document useful (0 votes)
25 views8 pages

Review For Final Lab Network

Uploaded by

Nxxxh Nxxxr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views8 pages

Review For Final Lab Network

Uploaded by

Nxxxh Nxxxr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

ENABLE MODE IN SWITCH

]\+ FUNCTION
CODE FOR enable
conf t Go to configuration mode
sh run Show running config (all interfaces and all done
steps)
wr Save running config to startup config
sh start Show startup config

CONFIGURATION MODE

CODE FOR Configuration Mode FUNCTION


no ip domain-lookup Anti-error
hostname (name) Set a name for switch
enable password (password here) Password for enable
banner motd “message here” Add banner motd (first msg when enter the
device)
line con 0 Go to console configuration
line vty 0 1 Go to remote configuration
service password-encryption Do this after configuring passwords if you want to
encrypt passwords
enable secret (password here) More sophisticated and already encrypted
no enable secret Remove secret for enable

CONSOLE CONFIG MODE

CODE FOR Line Con Mode FUNCTION


password (password here) Password for the console before entering default
Login Do this command after setting the password

REMOTE CONFIG MODE

CODE FOR Line Vty Mode FUNCTION


password (password here) Password for the remote before entering console
login Do this command after setting the password
ip add (ip) (mask) To add IP address with subnet mask
no shutdown Do this after setting up the ip

• Adding IP to PC > Go to desktop > IP configuration > then setup the required info
• Adding Gateway IP to PC > use the router ip for the gateway
• Setting up router config > if cli is disabled > attach console line from pc to router > go to
desktop from pc > then terminal > then setup the required info
• Pinging > go to a pc > go to desktop > command prompt > then ping from there
• Accessing router/switch from PC > use /telnet (IP here) > you will enter the user mode for that
switch
• Getting OSI MODEL or the structure of the packet > go to simulation > run the simulation >
inspect the event list
• When configuring router > always enter no when prompt for initial configuration
• Configuring certain port in router > use /int command example: int (type of port) (port address)
> int gigethernet 0/0/0
• Check ip for all connection using commandprompt in pc > use /ipconfig
• To fill the mac address table in switch in the pc command prompt > generate a traffic using /ping
(ip) -n (number of pings)
• When pinging or sending packets > destination and source ip doesn’t change, only the mac
address changes usually from a hard network device to the gateway
• Attaching fibre port in router > go to physical> click GE > if not hot swap turn the router first >
insert fibre port on the router

PC

Code for PC command prompt FUNCTION


arp -d Remove all assigned arp
arp -a Display all arp entry and the most important
entry is the one with the dynamic which is the
gateway
switching to simulation > then use ping to Then the arp table on the pc will have the entry
generate arp table for the destination’s mac address
Ipconfig /all To show IP, gateway, subnet, DHCP server and
physical (mac) addresses
Ipv6config /all Same^ but for ipv6
Tracert (Dest IPv4 or IPv6) Discover the path

ROUTER

Code for Router enable mode FUNCTION


int (type/name of port) (port address) Configuration mode for a certain port
sh ip int br Show brief info like ports ip, status and their
protocol
sh int (type/name of port) (port address) Show information like bandwidth, mac address,
ip address for that certain port
sh ip arp Show the ip and mac address of pc connected to
the router together with the router’s ip and mac
address
sh version To check version and name of the router. Uptime
is also available to show how long is the router
turned on, and it also shows how many gig lines,
physical memory, and flash memory.
copy startup-config flash Put the start config to flash for backup
copy flash startup-config Write the saved backup to the startup config
sh ip rout Displays the content of the routing table
Desc (The description) To add description after configuring ip address on
interface
C: connected rotes
D: EIGRP
end After ^

CODE FOR interface config of router FUNCTION


ip add (ip here) (mask here) Adding ip and mask
no shutdown Do this every after adding ip

SWITCH

CODE FOR switch enable FUNCTION


mac-address-table Show the mac address table in switch

Connection of the network devices

Coaxial Connector (Blue Zigzag) Connect cloud to cable modem


Serial Cable (Red Zigzag) Router to Router, slow speed connector
Cross Cable (broken line connector) Connect same type of network device ie. Switch
to switch, pc to pc, special case is connecting
router to pc/server
Straight Cable / Copper straight (Black line Connecting different type of network device like
connector) pc to switch, cable modem to wireless router,
wireless router to pc
Console (line blue connector) Configuration cable connecting pc/laptop to a
network device like router or switch
Fiber connection (yellow straight line) Connecting router to switch for highspeed, use
fastethernet with eye-looking icon
Serial DCE (red zigzag with clock)
Destination and Source mapping

• When pc wants to communicate outside the lan, the destination ip and source ip doesn’t change
but the mac address for the destination will be assigned to the mac address of the
gateway/router
• After the router receives the packet, the source mac address now will be assigned to the router
and the destination mac address will be assigned to the destination ip’s mac-address / pc

Checking Expansion slots for router and switch and inserting ports

• Check the physical router and empty slots are the expansion slots
• When inserting Gig, check for the FGE module

Replacing Router and switch to MultiSwitch

• To get the ip and the subnet mask, just use /sh run or /sh ip int br
• Do /int (port) to assign a certain port in the multiswitch
• Use /no switchport on the multiswitch so we can setup ip for the switch

To get Mac Address:

From a PC or Router or Switch:

1- Ping the wanted device


2- PC: Arp -a
3- Router: R1>sh arp
4- Switch: S1> sh mac-address-table

Configure Layer 3 switch:

1- Enter wanted interface:


S1(config)#int g0/1
2- S1(config-if)#no switchport
3- S1(config-if)# ip address 172.16.31.1 255.255.255.0
4- S1(config-if)#no sh
5- S1(config-if)#exit

Generate Broadcast traffic:

1- Switch to simulation mode


2- Add complex PDU to any device
3- Set:
Dest address: 255.255.255.255
Sequence Number: 1
One shot time: 0
DO NOT CONFIGURE ANY INTERFACE WITH THE NETWORK OR SUBNET ADDRESS!! USE FIRST AVAILABLE
HOST FOR DEFAULT GATEWAY AND SECOND SECONDE AVAILABLE HOST FOR THE SWITCH.

To configure default gateway on switch:

S1#ip default-gateway (ip address)

Always start subnetting from the biggest number of hosts till the smallest number.

First available host for router, second available host for switch.

Borrowed bits: 0 1 2 3 4 5 6 7

Available hosts: - 0 2 6 14 30 62 126

255: 1111 1111

254: 1111 1110

252: 1111 1100

248: 1111 1000

240: 1111 0000

224: 1110 0000

192: 1100 0000

128: 1000 0000

Subnetting IPv6 Network:

Network Address: 2001:DB8:ACAD:00C8::0/64


-----------------------------------------------------------------------

Subnet Address 1: 2001:DB8:ACAD:00C8::0/64

Subnet Address 2: 2001:DB8:ACAD:00C9::0/64

Subnet Address 3: 2001:DB8:ACAD:00CA::0/64

Subnet Address WAN: 2001:DB8:ACAD:00CD::0/64

-----------------------------------------------------------------------

Subnet Address 4: 2001:DB8:ACAD:00CB::0/64

Subnet Address 5: 2001:DB8:ACAD:00CC::0/64

Subnet Address WAN: 2001:DB8:ACAD:00CD::0/64

WAN Always last address count


Assign IPv6 to interface on router:

R1#IPv6 address 2001:DB8:ACAD:00C8::0/64

R1#IPv6 address FE80::1 link-local

R1#No Sh

For PCs:

Desktop>select Automatic below IPv6 configuration

Enable any service on servers:

Click on server>Choose services>

Websites:

1- choose ON for HTTP and HTTPS


2- Go to any PC> Desktop> Web Browser
3- Enter the IP or domain in the URL box>Go

Emails:

1- Choose ON for SMTP and POP3


2- Set domain name Hi.com>Click set
3- Create username and password for host>Click +
4- Go to any PC> Desktop> Email
5- Enter the name of the host, Email Address: [email protected], Incoming Mail Server and
Outgoing Mail Server: 10.10.10.2 (Same IP address for the server), Username, Password
6- Save>Receive
7- From Mail Browser Choose Compose>Fill info and send> go to Dest device and click receive to
check the email> Reply to check connectivity.

DHCP:

1- Choose ON beside Service


2- Add pool name (any name)
3- Default gateway and DNS server if exist
4- Start IP Address (Network Address) and subnet mask
5- Max number of users
6- Add
7- If the server exists in other LAN:
a- Click on the router> conf mode
b- R(Config)#ip dhcp pool (PoolName)
c- R(dhcp-Config)#network (ip address) (Mask)
d- R(Config)#default-router (gateway address or first usable host on the LAN)
e- R(Config)#dns-server (ip of dns)
8- Configure the devices: Desktop>IP configuration>Click on DHCP
DNS:

1- Click ON beside DNS Service


2- Add Name (Domain Ex: Hi.com)
3- Address (ip of the domain or website)
4- Add

FTP:

1- Click ON beside Service


2- Add username and password
3- Choose the permissions
4- Add
5- Upload or download files:
a- PC>Desktop>Test Editor to check the file exist on the pc
b- PC>Desktop>Command Prompt> C:/> ftp centralserver.pt.pka
c- Enter username and password
d- To see all the files, exist on the server: C:/> dir
e- To upload: ftp> put (file name)
f- To download: ftp> get (file name)
g- ftp> quit

How to configure a IPV6 address on your layer 2 Switch (2960) for management purpose (interface
vlan 1):

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#sdm prefer dual-ipv4-and-ipv6 default

Switch(config)#end

Switch#

%SYS-5-CONFIG_I: Configured from console by console

Switch#wr

Building configuration...

[OK]

Switch#reload

You might also like