Próbuję skonfigurować vlany wg tego opisu, skonfigurowałem, lecz coś nie działa, próbuję puścić ping z maszyny podpiętej do tego samego przełącznika do portu 2, 3, 4 lub 24, i jedyna informacja jaką mam:
Kod: Zaznacz cały
Upłynął limit czasu żądania.
Tak to wygląda po stronie maszyny, do której pinguję:
Kod: Zaznacz cały
# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.10 | 10 | eth0
eth0.66 | 66 | eth0
Kod: Zaznacz cały
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug eth1
iface eth1 inet static
# vlan
auto eth0.10
iface eth0.10 inet static
address 192.168.115.1
netmask 255.255.255.0
network 192.168.115.0
broadcast 192.168.115.255
mtu 1500
vlan_raw_device eth0
#
auto eth0.66
iface eth0.66 inet static
address 192.168.66.254
netmask 255.255.255.0
network 192.168.66.0
broadcast 192.168.66.255
mtu 1500
vlan_raw_device eth0
Kod: Zaznacz cały
# ip addr sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:0d:61:80:e2:93 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
4: eth0.10@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN
link/ether 00:0d:61:80:e2:93 brd ff:ff:ff:ff:ff:ff
inet 192.168.115.1/24 brd 192.168.115.255 scope global eth0.10
5: eth0.66@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN
link/ether 00:0d:61:80:e2:93 brd ff:ff:ff:ff:ff:ff
inet 192.168.66.254/24 brd 192.168.66.255 scope global eth0.66
Kod: Zaznacz cały
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Kod: Zaznacz cały
Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SW1
!
enable secret hash :P
!
username admin
!
!
!
!
!
ip subnet-zero
cluster enable trata 0
!
!
!
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,66,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/2
switchport access vlan 66
spanning-tree portfast
!
interface FastEthernet0/3
switchport access vlan 10
spanning-tree portfast
!
interface FastEthernet0/4
switchport access vlan 10
spanning-tree portfast
!
interface FastEthernet0/24
description Zarzadzanie
switchport access vlan 66
spanning-tree portfast
!
interface VLAN1
no ip directed-broadcast
ip nat outside
shutdown
!
interface VLAN66
description Zarzadzanie
ip address 192.168.66.1 255.255.255.0
no ip directed-broadcast
ip nat outside
!
ip nat inside source list 199 interface VLAN66 overload
access-list 199 dynamic Cluster-NAT permit ip any any
!
line con 0
transport input none
stopbits 1
line vty 0 4
password haslo
login
line vty 5 15
password haslo
login
!
end
Kod: Zaznacz cały
# mii-tool
eth0: no link
eth1: negotiated 100baseTx-FD, link ok