Pagina 1 di 1

config e associazione vlan

Inviato: mar 22 mag , 2012 6:11 pm
da spidernet
ciao a tutti ragazzi, ho un problema da risolveree mi farebbe piacere poter riceve da voi delucidazioni:

questo è router in oggetto è questo:


Cisco 1721 (MPC860P) processor (revision 0x200) with 59447K/6089K bytes of memory.
Processor board ID FOC07421YU6 (1529568010), with hardware revision 0000
MPC860P processor: part number 5, mask 2
1 Ethernet interface
5 FastEthernet interfaces
1 Serial(sync/async) interface
32K bytes of NVRAM.
32768K bytes of processor board System flash (Read/Write)

Configuration register is 0x2102



router#sh interfaces
FastEthernet0 is up, line protocol is up
Hardware is PQUICC_FEC, address is 000d.ed7b.4528 (bia 000d.ed7b.4528)
Description: Interfaccia Dati
Internet address is *********
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)
Full-duplex, 100Mb/s, 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:02, output 00:00:02, 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
11160 packets input, 4562004 bytes
Received 2 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog
0 input packets with dribble condition detected
11233 packets output, 3865961 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
FastEthernet1 is up, line protocol is down
Hardware is Fast Ethernet, address is 001b.2a39.d75c (bia 001b.2a39.d75c)
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 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
FastEthernet2 is up, line protocol is down
Hardware is Fast Ethernet, address is 001b.2a39.d75d (bia 001b.2a39.d75d)
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 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
FastEthernet3 is up, line protocol is down
Hardware is Fast Ethernet, address is 001b.2a39.d75e (bia 001b.2a39.d75e)
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 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
FastEthernet4 is up, line protocol is down
Hardware is Fast Ethernet, address is 001b.2a39.d75f (bia 001b.2a39.d75f)
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 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Serial0 is up, line protocol is up
Hardware is PowerQUICC Serial
MTU 1500 bytes, BW 1984 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation FRAME-RELAY IETF, loopback not set
Keepalive set (10 sec)
LMI enq sent 657, LMI stat recvd 657, LMI upd recvd 0, DTE LMI up
LMI enq recvd 0, LMI stat sent 0, LMI upd sent 0
LMI DLCI 0 LMI type is ANSI Annex D frame relay DTE
FR SVC disabled, LAPF state down
Broadcast queue 0/64, broadcasts sent/dropped 0/0, interface broadcasts 0
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters 01:49:32
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, 1 packets/sec
5 minute output rate 0 bits/sec, 1 packets/sec
15633 packets input, 3897527 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
1 input errors, 0 CRC, 1 frame, 0 overrun, 0 ignored, 0 abort
18147 packets output, 4844415 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up

Serial0.1 is up, line protocol is up
Hardware is PowerQUICC Serial
Description: VC ATM
Internet address is **********
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation FRAME-RELAY IETF
Last clearing of "show interface" counters never
Vlan1 is up, line protocol is down
Hardware is EtherSVI, address is 000d.ed7b.4528 (bia 000d.ed7b.4528)
MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 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
0 packets output, 0 bytes, 0 underruns
0 output errors, 2 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
Vlan200 is up, line protocol is down
Hardware is EtherSVI, address is 000d.ed7b.4528 (bia 000d.ed7b.4528)
Description: TRAFFICO DATI
MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 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
0 packets output, 0 bytes, 0 underruns
0 output errors, 1 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out


e questa è la configurazione attualmente in funzione:


!
boot-start-marker
boot-end-marker
!
logging buffered 4096 debugging
enable password 7 ********
!
aaa new-model
!
!
aaa authentication login default local
!
aaa session-id common
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
ip cef
no vlan accounting
!
username ******** privilege 15 password 7 **********
!
!
!
!
interface FastEthernet0
no ip address
!
interface FastEthernet1
switchport access vlan 200
!
interface FastEthernet2
switchport access vlan 200
!
interface FastEthernet3
switchport access vlan 200
!
interface FastEthernet4
switchport access vlan 200
!
interface Serial0
bandwidth 1984
no ip address
encapsulation frame-relay IETF
no fair-queue
no arp frame-relay
frame-relay lmi-type ansi
!
interface Serial0.1 point-to-point
description VC ATM
ip address ***.***.***.*** 255.255.255.***
snmp trap link-status
no cdp enable
frame-relay interface-dlci 111
!
interface Vlan1
no ip address
!
interface Vlan200
description TRAFFICO DATI
ip address ***.***.***.*** 255.255.255.***
no ip redirects
no ip proxy-arp
ip nbar protocol-discovery
ip virtual-reassembly
speed auto
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Serial0.1
no ip http server
!
!
!
!
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
transport input all
transport output all


il mio problema è far funzionare sotto la stessa vlan anche l'interfaccia fastethernet 0 che a differenza delle altre quest'ultima è integrata a bordo macchina.

come posso fare?
qualcuno può aiutarmi?

grazie ragazzi

Re: config e associazione vlan

Inviato: mar 22 mag , 2012 9:31 pm
da paolomat75
Hai provato a creare una sotto interfaccia ed inserirla nella VLAN?

Re: config e associazione vlan

Inviato: mar 22 mag , 2012 11:51 pm
da spidernet
paolomat75 ha scritto:Hai provato a creare una sotto interfaccia ed inserirla nella VLAN?

no!!! no saprei neppure come procedere....!!!
dove devo crearla la sotto interfaccia?

cmq grazie per avermi risposto

Re: config e associazione vlan

Inviato: mer 23 mag , 2012 12:56 am
da spidernet
spidernet ha scritto:
paolomat75 ha scritto:Hai provato a creare una sotto interfaccia ed inserirla nella VLAN?

no!!! no saprei neppure come procedere....!!!
dove devo crearla la sotto interfaccia?

cmq grazie per avermi risposto
cmq non funziona neppure così!!!!!!!!
funziona solo se gli ip li configuro sotto la fastethernet 0
:-(

Re: config e associazione vlan

Inviato: mer 23 mag , 2012 7:34 am
da Rizio
spidernet ha scritto:cmq non funziona neppure così!!!!!!!!
Che comandi gli hai dato?

Rizio

Re: config e associazione vlan

Inviato: gio 24 mag , 2012 11:04 am
da dinukro
Ciao , devi creare il bridge fre le vari interfaccie.

!
!
ip dhcp pool My-LAN
import all
network ***.***.***.*** 255.255.255.***
default-router (IP della BVI1)
lease infinite
!
bridge irb
!
bridge 1 protocol ieee
bridge 1 route ip

!
interface BVI1
ip address ***.***.***.*** 255.255.255.***
ip virtual-reassembly
!
!
interface FastEthernet0
description $Lan Interna$
ip address dhcp
ip virtual-reassembly
duplex auto
speed auto
bridge-group 1
!
interface Vlan200
description TRAFFICO DATI
ip address dhcp
bridge-group 1
no ip redirects
no ip proxy-arp
ip nbar protocol-discovery
ip virtual-reassembly
speed auto
!
!

Fammi sapere.....

Grazie

Re: config e associazione vlan

Inviato: ven 25 mag , 2012 6:28 pm
da spidernet
dinukro ha scritto:Ciao , devi creare il bridge fre le vari interfaccie.

!
!
ip dhcp pool My-LAN
import all
network ***.***.***.*** 255.255.255.***
default-router (IP della BVI1)
lease infinite
!
bridge irb
!
bridge 1 protocol ieee
bridge 1 route ip

!
interface BVI1
ip address ***.***.***.*** 255.255.255.***
ip virtual-reassembly
!
!
interface FastEthernet0
description $Lan Interna$
ip address dhcp
ip virtual-reassembly
duplex auto
speed auto
bridge-group 1
!
interface Vlan200
description TRAFFICO DATI
ip address dhcp
bridge-group 1
no ip redirects
no ip proxy-arp
ip nbar protocol-discovery
ip virtual-reassembly
speed auto
!
!

Fammi sapere.....

Grazie

:-(
ho seguito il tuo consiglio ma mi funziona sempre e solo sotto la fastethernet 0
sotto la fastethernet 1 la 2 la 3 e la 4 che fanno parte di uno switch, non supportano il bridge-group, e se gli configuro invece "switchport access vlan 200", non funziona.

levami una curiosità, ma se non configuro la fastethernet 0 temporaneamente per fare delle prove da remoto, e configuro solo la wic ethernet con switchport access vlan 200, per pingare il router sull'ip pubblico, devo perforza attaccare un pc ad una porta?
mi sa di si... :-)
quindi dovrei provare la tua config in locale!!!!

grazie mille....sei gentilissimo

Re: config e associazione vlan

Inviato: lun 28 mag , 2012 7:42 am
da Rizio
Secondo me la configurazione di Dinukro dovrebbe funzionare, io, per lo meno l'ho usata con successo per mettere in bridge il wireless e la eth0 di un 877.
L'unica cosa che mi sento di dirti di provare è un diverso bridge protocoll. Prova a cambiarlo in "vlan-bridge" o addirittura toglierlo proprio.

Ricordati anche di essere certo che almeno ad una delle 4 porte sia collegato almeno un pc acceso perchè altrimenti la vlan può non andare up.

Rizio

Re: config e associazione vlan

Inviato: lun 28 mag , 2012 10:08 pm
da spidernet
Rizio ha scritto:Secondo me la configurazione di Dinukro dovrebbe funzionare, io, per lo meno l'ho usata con successo per mettere in bridge il wireless e la eth0 di un 877.
L'unica cosa che mi sento di dirti di provare è un diverso bridge protocoll. Prova a cambiarlo in "vlan-bridge" o addirittura toglierlo proprio.

Ricordati anche di essere certo che almeno ad una delle 4 porte sia collegato almeno un pc acceso perchè altrimenti la vlan può non andare up.

Rizio
ci provo e vi faccio sapere ragazzi

siete gentilissimi.

Re: config e associazione vlan

Inviato: lun 28 mag , 2012 11:58 pm
da spidernet
spidernet ha scritto:
Rizio ha scritto:Secondo me la configurazione di Dinukro dovrebbe funzionare, io, per lo meno l'ho usata con successo per mettere in bridge il wireless e la eth0 di un 877.
L'unica cosa che mi sento di dirti di provare è un diverso bridge protocoll. Prova a cambiarlo in "vlan-bridge" o addirittura toglierlo proprio.

Ricordati anche di essere certo che almeno ad una delle 4 porte sia collegato almeno un pc acceso perchè altrimenti la vlan può non andare up.

Rizio
ci provo e vi faccio sapere ragazzi

siete gentilissimi.
ragazzi che ne dite, così dovrebbe funzionare?


boot-start-marker
boot-end-marker
!
logging buffered 4096 debugging
enable password 7 047B06161D321A1A5A
!
aaa new-model
!
!
aaa authentication login default local
!
aaa session-id common
clock timezone Roma 1
clock summer-time Roma recurring last Sun Mar 2:00 last Sun Oct 2:00
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 300
!
!
no ip dhcp use vrf connected
!
ip dhcp pool LAN
import all
network ***.***.***.**0 255.255.255.***
default-router ***.***.***.**1 255.255.255.***
lease infinite
!
!
ip cef
!
username ******* privilege 15 password 7 1248514740595D5D7E
!
!
bridge irb
!
!
interface FastEthernet0
no ip address
no ip redirects
no ip proxy-arp
ip nbar protocol-discovery
ip virtual-reassembly
speed auto
bridge-group 100
!
interface FastEthernet1
switchport access vlan 200
!
interface FastEthernet2
switchport access vlan 200
!
interface FastEthernet3
switchport access vlan 200
!
interface FastEthernet4
switchport access vlan 200
!
!
!
interface Serial0
bandwidth 1984
no ip address
encapsulation frame-relay IETF
no fair-queue
no arp frame-relay
frame-relay lmi-type ansi
!
interface Serial0.1 point-to-point
description VC ATM
ip address ***.***.***.*** 255.255.255.252
snmp trap link-status
no cdp enable
frame-relay interface-dlci 111
!
interface Vlan1
no ip address
!
interface Vlan200
description TRAFFICO DATI
ip address dhcp
no ip redirects
no ip proxy-arp
ip nbar protocol-discovery
ip virtual-reassembly
bridge-group 100
!
interface BVI100
ip address 31.***.***.*** 255.255.255.248
ip virtual-reassembly
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Serial0.1
no ip http server
!
!
!
!
!
!
control-plane
!
bridge 100 protocol vlan-bridge
bridge 100 route ip
!
line con 0
line aux 0
line vty 0 4
transport input all
transport output all
!
end


purtroppo per provare dovrò andare in sede a collegare un pc su una delle 4 porte della wic ethernet.
un'altra cosa ragazzi, ma per creare la vlan 200 nel database, basta scrivere vlan database e creare la vlan 200? o bisogna specificare qualcosa durante la creazione?
tenete presente che inizialmente la vlan200 non la riconosceva...

grazie raga

Re: config e associazione vlan

Inviato: mer 30 mag , 2012 8:10 am
da Rizio
Mah.... non sò come possa venire gestito un indirizzo ip su una BVI ma è interessante scoprirlo :)
Per la vlan ti basta scrivere

Codice: Seleziona tutto

vlan 200
che dovrebbe creartela (in tutte le versioni di ios su cui ho messo mano io), se poi fai il giro attraverso il comando del database è anche "politically correct" :)


Facci sapere se funziona.
Rizio