Sunteți pe pagina 1din 18

Building a network

The network

The network has 2 personal computers and a router and they are connected after
a set up some setting with the router and the computers.
Router
These are the codes you need to write
Cisco CISCO1941/K9 (revision 1.0) with 491520K/32768K bytes of memory.
Processor board ID FTX152400KS
2 Gigabit Ethernet interfaces
DRAM configuration is 64 bits wide with parity disabled.
255K bytes of non-volatile configuration memory.
249856K bytes of ATA System CompactFlash 0 (Read/Write)

--- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]: no

Press RETURN to get started!

Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router0
Router0(config)#enable secret class
Router0(config)#line con 0
Router0(config-line)#password cisco
Router0(config-line)#login
Router0(config-line)#exit
Router0(config)#line vty 0 4
Router0(config-line)#password cisco
Router0(config-line)#login
Router0(config-line)#exit
Router0(config)#interface FastEthernet0/0
Router0(config)#interface GigabitEthernet0/0
Router0(config-if)#ip address 192.168.1.1 255.255.255.0
Router0(config-if)#description Router 0 GigabitEthernet0/0
Router0(config-if)#no shutdown

Router0(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed


state to up

Router0(config-if)#exit
Router0(config)#interface GigabitEthernet0/1
Router0(config-if)#ip address 192.168.2.1 255.255.255.0
Router0(config-if)#description Router0 GigabitEthernet0/1
Router0(config-if)#no shutdown

Router0(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed


state to up

Router0(config-if)#exit
Router0(config)#exit
Router0#
%SYS-5-CONFIG_I: Configured from console by console

Router0#show running-config
Building configuration...

Current configuration : 803 bytes


!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router0
!
!
!
enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX15242S1F
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
description Router 0 GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
description Router0 GigabitEthernet0/1
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
password cisco
login
!
line aux 0
!
line vty 0 4
password cisco
login
!
!
!
end

Router0#
Router0#
Router0#
Router0#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

PC 0
PC 1
How to ping a PC
Simulation
Messages and packets

The messages are sent from a computer across the router to the next computer.

This is the message process as it is spit into packet in little pieces to the other
computer.
Confirmation that the message has been sent to the other computer.
Problems incanted

I have set up the router with the instructions on the two computers but it dont
show that it is connected as I didnt switch on the two computers.

S-ar putea să vă placă și