Problema Rotte VLan con Cisco 877

Tutto ciò che ha a che fare con le reti

Moderatore: Federico.Lagni

Rispondi
vassiskansa
n00b
Messaggi: 10
Iscritto il: mar 27 ago , 2013 10:59 am

Salve a tutti,
spero che qualcuno sappia darmi consigli preziosi riguardo alla configurazione del mio cisco 877, perchè io non so più a che santo votarmi...

La configurazione che interessa sapere è la seguente:

Codice: Seleziona tutto

!
interface FastEthernet0
!
interface FastEthernet1
!
interface FastEthernet2
!
interface FastEthernet3
 switchport access vlan 2
!
interface Vlan1
 description DATI
 ip address 192.168.1.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 ip tcp adjust-mss 1452
!
interface Vlan2
 description VOIP
 ip address 192.168.10.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 ip tcp adjust-mss 1452
!
Il problema è che se faccio uno show ip route il risultato è il seguente

Codice: Seleziona tutto

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

     185.21.0.0/32 is subnetted, 2 subnets
C       185.21.72.7 is directly connected, Dialer1
C       185.21.72.8 is directly connected, Dialer2
     82.0.0.0/32 is subnetted, 1 subnets
C       82.113.192.22 is directly connected, Dialer1
                      is directly connected, Dialer2
     77.0.0.0/32 is subnetted, 1 subnets
S       77.239.128.7 is directly connected, Dialer2
C    192.168.1.0/24 is directly connected, Vlan1
S*   0.0.0.0/0 is directly connected, Dialer1
Come vedete la rotta per la Vlan2 (192.168.10.0/24) non è menzionata.
Come mai secondo voi per la Vlan1 la rotta c'è e per la Vlan2 la rotta non viene creata in automatico? E come dovrei fare per "attivarla"?
Grazie.
Simone.
scolpi
Network Emperor
Messaggi: 337
Iscritto il: sab 30 ott , 2010 5:33 pm

La vlan 2 è stata creata? La vlan 1 esiste di default, ma la 2 va creata e poi va assegnata alla porta fisica.
CCNA Security,CCDP, CCNP R&S
Braveheart84
Cisco enlightened user
Messaggi: 170
Iscritto il: gio 01 set , 2011 8:43 pm

dovrebbe avertela creata nel momento in cui hai assegnato la fastethernet alla vlan 2. PRova a fare uno show vlan brief per vedere se è presente nel database
vassiskansa
n00b
Messaggi: 10
Iscritto il: mar 27 ago , 2013 10:59 am

scolpi ha scritto:La vlan 2 è stata creata? La vlan 1 esiste di default, ma la 2 va creata e poi va assegnata alla porta fisica.
Penso di averla creata quando ho fatto interface Vlan2, oppure devo fare anche qualche altra cosa?
Braveheart84 ha scritto:dovrebbe avertela creata nel momento in cui hai assegnato la fastethernet alla vlan 2. PRova a fare uno show vlan brief per vedere se è presente nel database
Purtroppo non ho a disposizione quel comando, ma posso fare questo:

Codice: Seleziona tutto

show interfaces vlan2     
Vlan2 is up, line protocol is down 
  Hardware is EtherSVI, address is 001e.f721.d0c7 (bia 001e.f721.d0c7)
  Description: VOIP
  Internet address is 192.168.10.1/24
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     1 packets output, 60 bytes, 0 underruns
     0 output errors, 1 interface resets
     0 output buffer failures, 0 output buffers swapped out
Braveheart84
Cisco enlightened user
Messaggi: 170
Iscritto il: gio 01 set , 2011 8:43 pm

ma hai scritto "no shutdown" sulla fastethernet della vlan??
vassiskansa
n00b
Messaggi: 10
Iscritto il: mar 27 ago , 2013 10:59 am

Braveheart84 ha scritto:ma hai scritto "no shutdown" sulla fastethernet della vlan??
Si, l'avevo già scritto...

Codice: Seleziona tutto

show interface fastEthernet 3
FastEthernet3 is up, line protocol is down 
  Hardware is Fast Ethernet, address is 001e.f721.d0ca (bia 001e.f721.d0ca)
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Auto-duplex, Auto-speed
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 input packets with dribble condition detected
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 2 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier
     0 output buffer failures, 0 output buffers swapped out
Braveheart84
Cisco enlightened user
Messaggi: 170
Iscritto il: gio 01 set , 2011 8:43 pm

le porte fastethernet sono tutte sul router?
scolpi
Network Emperor
Messaggi: 337
Iscritto il: sab 30 ott , 2010 5:33 pm

vedrai che se digiti:

Codice: Seleziona tutto

sh vlan-switch
è presente solo la vlan 1.

Per crearla:
cont t
vlan 2
name pippo
exit
e per magia funziona ;)
CCNA Security,CCDP, CCNP R&S
Braveheart84
Cisco enlightened user
Messaggi: 170
Iscritto il: gio 01 set , 2011 8:43 pm

ma in genere se uno assegna una porta a una vlan, la crea automaticamente, cmq prova pure a seguire il metodo di scolpi.
scolpi
Network Emperor
Messaggi: 337
Iscritto il: sab 30 ott , 2010 5:33 pm

ovviamente affinche l'interface vlan 2 vada up deve esserci attaccato qualcosa alla fastetherneth relativaaltrimenti rimane down
CCNA Security,CCDP, CCNP R&S
vassiskansa
n00b
Messaggi: 10
Iscritto il: mar 27 ago , 2013 10:59 am

Braveheart84 ha scritto:le porte fastethernet sono tutte sul router?
Intendi fisicamente? Si.
scolpi ha scritto:vedrai che se digiti:

Codice: Seleziona tutto

sh vlan-switch
è presente solo la vlan 1.

Per crearla:
cont t
vlan 2
name pippo
exit
e per magia funziona ;)
Negativo... ho provato.

Codice: Seleziona tutto

#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
(config)#vlan2
                         ^
% Invalid input detected at '^' marker.

(config)#vlan 2
(config-vlan)#name VoIP
(config-vlan)#exit
(config)#exit
#show vlan-switch   

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0, Fa1, Fa2
2    VoIP                             active    Fa3
1002 fddi-default                     act/unsup 
1003 token-ring-default               act/unsup 
1004 fddinet-default                  act/unsup 
1005 trnet-default                    act/unsup 

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        1002   1003
2    enet  100002     1500  -      -      -        -    -        0      0   
1002 fddi  101002     1500  -      -      -        -    -        1      1003
1003 tr    101003     1500  1005   0      -        -    srb      1      1002
1004 fdnet 101004     1500  -      -      1        ibm  -        0      0   
1005 trnet 101005     1500  -      -      1        ibm  -        0      0
Braveheart84
Cisco enlightened user
Messaggi: 170
Iscritto il: gio 01 set , 2011 8:43 pm

prova così:
conf t
interface vlan 2
no shut
vassiskansa
n00b
Messaggi: 10
Iscritto il: mar 27 ago , 2013 10:59 am

scolpi ha scritto:ovviamente affinche l'interface vlan 2 vada up deve esserci attaccato qualcosa alla fastetherneth relativaaltrimenti rimane down
... and the winner is ... scolpi!

Grazie anche a tutti gli altri, ovviamente.
Braveheart84
Cisco enlightened user
Messaggi: 170
Iscritto il: gio 01 set , 2011 8:43 pm

:D Scolpi paga da bere a tutti!
Rispondi