Packet Tracer - Subinterfaces

Knihy, studijní materiály, informace ohledně testů a certifikací

Packet Tracer - Subinterfaces

Příspěvekod comedian » 11.04.2010 12:37

Cau vsichni. Pokousim se v Packet Traceru nakonfigurovat tohle schema: cast 1.: http://www.youtube.com/watch?v=-Z2PQKu1qOA a cast.2: http://www.youtube.com/watch?v=XjV4LXVz ... re=related Ale nedari se mi, ip adresu z dhcp ziskam pouze na prvnim PC a na dalsich ne. Ikdyz je pridelim staticky, tak komunikace probiha jenom od routru a prvniho PC k ostatnim...........zpet ne. Dam sem vypis prikazu, tak jestli budete nekdo cas, kouknete na to........diky
p.s. Je to trosku delsi vypis, sry. :oops:
----------------------------
Router

Router>en
Router# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#in fa0/0.1
Router(config-subif)#ip add 192.168.1.1 255.255.255.0

% Configuring IP routing on a LAN subinterface is only allowed if that
subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
or ISL vLAN.

Router(config-subif)#encap
% Incomplete command.
Router(config-subif)#encap dot 10
Router(config-subif)#ip add 192.168.1.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#int fa0/0.2
Router(config-subif)#encap dot 20
Router(config-subif)#ip add 192.168.2.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#int fa0/0.3
Router(config-subif)#encap dot 30
Router(config-subif)#ip add 192.168.3.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#exit
Router(config)#int fa0/0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.3, changed state to up
Router(config-if)#exit
Router(config)#ip route 192.168.1.0 255.255.255.0 fa0/0.1 1
Router(config)#ip route 192.168.2.0 255.255.255.0 fa0/0.2 1
Router(config)#ip route 192.168.3.0 255.255.255.0 fa0/0.3 1
Router(config)#ip dhcp pool Net10
Router(dhcp-config)#net 192.168.1.0 255.255.255.0
Router(dhcp-config)#default 192.168.1.1
Router(dhcp-config)#exit
Router(config)#ip dhcp poolNet20
^
% Invalid input detected at '^' marker.

Router(config)#ip dhcp pool Net20
Router(dhcp-config)#net 192.168.2.0 255.255.255.0
Router(dhcp-config)#default 192.168.2.1
Router(dhcp-config)#exit
Router(config)#ip dhcp pool Net30
Router(dhcp-config)#net 192.168.3.0 255.255.255.0
Router(dhcp-config)#default 192.168.3.1
Router(dhcp-config)#exit
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Router#wr mem
Building configuration...
[OK]
Router#sh run
Building configuration...

Current configuration : 1031 bytes
!
version 12.4
no service password-encryption
!
hostname Router
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 10
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/0.3
encapsulation dot1Q 30
ip address 192.168.3.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.1.0 255.255.255.0 FastEthernet0/0.1
ip route 192.168.2.0 255.255.255.0 FastEthernet0/0.2
ip route 192.168.3.0 255.255.255.0 FastEthernet0/0.3
!
!
!
!
ip dhcp pool Net10
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
ip dhcp pool Net20
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
ip dhcp pool Net30
network 192.168.3.0 255.255.255.0
default-router 192.168.3.1
!
line con 0
line vty 0 4
login
!
!
end


Router#exit
----------------------------------------
Switch0

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int g1/1
Switch(config-if)#sw mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to up
Switch(config-if)#sw trunk all vlan 10,20,30
Switch(config-if)#exit
Switch(config)#int g1/2
Switch(config-if)#sw mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/2, changed state to up
Switch(config-if)#sw trunk all vlan 10,20,30
Switch(config-if)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 10
% Access VLAN does not exist. Creating vlan 10
Switch(config-if)#exit
Switch(config)#exit
--------------------------------------
Switch1

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int g1/1
Switch(config-if)#sw mode trunk
Switch(config-if)#sw trunk all vlan 10,20,30
Switch(config-if)#exit
Switch(config)#int g1/2
Switch(config-if)#sw mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/2, changed state to up
Switch(config-if)#sw trunk all vlan 10,20,30
Switch(config-if)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 20
% Access VLAN does not exist. Creating vlan 20
Switch(config-if)#exit
Switch(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr mem
Building configuration...
[OK]
Switch#exit
----------------------------------
Switch2

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int g1/1
Switch(config-if)#sw mode trunk
Switch(config-if)#sw trunk all vlan 10,20,30
Switch(config-if)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 30
% Access VLAN does not exist. Creating vlan 30
Switch(config-if)#exit
Switch(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr mem
Building configuration...
[OK]
Switch#exit
comedian
nováček
nováček
 
Příspěvky: 3
Registrován: 06.04.2010 02:39

Re: Packet Tracer - Subinterfaces

Příspěvekod pepo » 08.06.2010 15:16

predpokladám že na switchoch nemáš nastavenú VTP doménu a switche medzi sebou nevidia vlanky. Tak buď na jednom vytvor VTP server a vytor na ňom VLANKy a ostatné nastav ako klientov, alebo na každom switchi zadaj:
vlan database
vlan 10 name vlan10
vlan 20 name vlan20
vlan 30 name vlan30

ďalšia možnosť prečo ti to nemusí isť je, že niektoré typy switchov potrebujú zadať typ enkapsulácie
pepo
nováček
nováček
 
Příspěvky: 6
Registrován: 19.01.2009 12:40

Re: Packet Tracer - Subinterfaces

Příspěvekod cromac » 15.06.2010 15:51

Proc pouzivas ne moc dobrej Packet Tracer, kdyz muzes pouzivat http://www.gns3.net/?
cromac
nováček
nováček
 
Příspěvky: 7
Registrován: 06.05.2010 13:37


Zpět na Studijní materiály a testy

Kdo je online

Uživatelé procházející toto fórum: Žádní registrovaní uživatelé a 1 návštěvník

cron