VLANy , trunk i adres z apipa

Problemy związane ze switchingiem
Wiadomość
Autor
szulczyk
member
member
Posty: 16
Rejestracja: 29 kwie 2014, 07:46

VLANy , trunk i adres z apipa

#1

#1 Post autor: szulczyk »

Witam,

Mam router opnsensa gdzie mam skonfigurowane rózne VLANY m.in. vlan 10 jako VLAN dla LAN z adresem 172.24.10.254 , jest na nim oczywiście ustawione dhcp.

Mam tego OPNSENsa podlaczonego do switcha ,i portu ,który jest następująco skonfigurowany:

Kod: Zaznacz cały

Interface Ethernet1/0/1
 description  OPNSENSE
 switchport mode trunk
 switchport trunk native vlan 10

Podłączam się komputerem z Windows do portu drugiego portu dcna ,który jest skonfigurowany w trybie access dla VLANU 10.

Kod: Zaznacz cały

Interface Ethernet1/0/2
 spanning-tree portfast
 switchport access vlan 10

Problem w tym że komputer otrzymuje adres z apipa i

Kod: Zaznacz cały

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::34c3:ca39:1a7b:5bc3%15
   Autoconfiguration IPv4 Address. . : 169.254.91.195
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :

Nie moge dostac sie do routera -opnsense ktory jest pod adresem 172.24.10.254.

Gdy pinguje ten adres to :

Kod: Zaznacz cały

C:\Windows\system32>ping 172.24.10.254

Pinging 172.24.10.254 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 172.24.10.254:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Nie rozumiem dlaczego karta w windowsie nie dostaje adresu dchp z zakresu vlan 10?

Awatar użytkownika
drake
CCIE
CCIE
Posty: 1593
Rejestracja: 06 maja 2005, 01:32
Lokalizacja: Dortmund, DE
Kontakt:

Re: VLANy , trunk i adres z apipa

#2

#2 Post autor: drake »

Hej,
usun z trunka 'switchport trunk native vlan 10' i powinno zaczac dzialac.

Pozdruffka! :)
Never stop exploring :)

https://iverion.de

szulczyk
member
member
Posty: 16
Rejestracja: 29 kwie 2014, 07:46

Re: VLANy , trunk i adres z apipa

#3

#3 Post autor: szulczyk »

OK czyli poprawnie jest ?

Kod: Zaznacz cały

Interface Ethernet1/0/1
 description  OPNSENSE
 switchport mode trunk

Nie rozumiem native vlan ,ktoś może łopatologicznie wytłumaczyć?

Awatar użytkownika
drake
CCIE
CCIE
Posty: 1593
Rejestracja: 06 maja 2005, 01:32
Lokalizacja: Dortmund, DE
Kontakt:

Re: VLANy , trunk i adres z apipa

#4

#4 Post autor: drake »

Tak, jest poprawnie, chociaz mozesz jeszcze to polepszyc i dodac:

Kod: Zaznacz cały

switchport nonegotiate
spanning-tree portfast trunk
Pozdruffka!
Never stop exploring :)

https://iverion.de

ODPOWIEDZ