0% found this document useful (0 votes)
33 views5 pages

Switching Avec 2 Routeur

The document shows the configuration of a network switch. VLANs 75, 85, 50 and 60 are created and interfaces F0/2, F0/3, F0/2 and F0/3 respectively. Interface F0/1 is configured for routing. IP addresses are assigned to the VLAN interfaces and interface F0/1.

Uploaded by

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

Switching Avec 2 Routeur

The document shows the configuration of a network switch. VLANs 75, 85, 50 and 60 are created and interfaces F0/2, F0/3, F0/2 and F0/3 respectively. Interface F0/1 is configured for routing. IP addresses are assigned to the VLAN interfaces and interface F0/1.

Uploaded by

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

Press RETURN to get started!

%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up

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

%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up

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

Switch>en
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 75
Switch(config-vlan)#name mark
Switch(config-vlan)#exit
Switch(config)#vlan 85
Switch(config-vlan)#name accou
Switch(config-vlan)#exit
Switch(config)#int
Switch(config)#interface f0/2
Switch(config-if)#swi
Switch(config-if)#switchport mode acc
Switch(config-if)#switchport mode access
Switch(config-if)#swi
Switch(config-if)#switchport acce
Switch(config-if)#switchport access vlan 75
Switch(config-if)#exit
Switch(config)#int
Switch(config)#interface f0/3
Switch(config-if)#swi
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode acc
Switch(config-if)#switchport mode access
Switch(config-if)#swi
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vlan 85
Switch(config-if)#exit
Switch(config)#
Switch(config)#
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
wr
Building configuration...
[OK]
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface vlan 75
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan75, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan75, changed state to up

Switch(config-if)#ip add
Switch(config-if)#ip address 10.2.75.1 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#int
Switch(config)#interface vlan
Switch(config)#interface vlan 85
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan85, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan85, changed state to up

Switch(config-if)#ip addr
Switch(config-if)#ip address 10.2.85.1 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
wr
Building configuration...
[OK]
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip rou
Switch(config)#ip routing
Switch(config)#int
Switch(config)#interface f0/1
Switch(config-if)#ip add
Switch(config-if)#ip add
Switch(config-if)#ip add
Switch(config-if)#no sw
Switch(config-if)#no switchport
Switch(config-if)#ip add
Switch(config-if)#ip address 10.2.1.2 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

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


%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up

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

%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up

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

Switch>ena
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 50
Switch(config-vlan)#name it
Switch(config-vlan)#exit
Switch(config)#vlan 60
Switch(config-vlan)#name
% Incomplete command.
Switch(config-vlan)#name rh
Switch(config-vlan)#exit
Switch(config)#inter
Switch(config)#interface rang
Switch(config)#interface range f0/2
Switch(config-if-range)#si
Switch(config-if-range)#swi
Switch(config-if-range)#switchport mode acc
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#swi
Switch(config-if-range)#switchport acce
Switch(config-if-range)#switchport access vlan 50
Switch(config-if-range)#exit
Switch(config)#int
Switch(config)#interface ra
Switch(config)#interface range f0/3
Switch(config-if-range)#swi
Switch(config-if-range)#switchport mode
Switch(config-if-range)#switchport mode acc
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#swi
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vlan 60
Switch(config-if-range)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
wr
Building configuration...
[OK]
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#in
Switch(config)#interface vlan 50
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan50, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan50, changed state to up

Switch(config-if)#ip add
Switch(config-if)#ip address 10.2.50.1 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#in
Switch(config)#interface vlan 60
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan60, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan60, changed state to up

Switch(config-if)#ip ad
Switch(config-if)#ip address 10.2.60.1 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
wr
Building configuration...
[OK]
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip routing
Switch(config)#int
Switch(config)#interface f0/1
Switch(config-if)#no switch
Switch(config-if)#no switchport
Switch(config-if)#ip add
Switch(config-if)#ip address 10.2.2.2 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

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


Switch con0 is now available

Press RETURN to get started.

You might also like