OK
Zamiast portu rutującego zrobiłem switchport, dodałem go do vlanu 3 i ustawiłem dla tego vlanu adres 172.16.16.3 - efekt, już myślałem działa!!! po chwili
Kolejne co zrobiłem to zastąpiłem linksysa mikrotikiem, on dla każdego portu ma oddzielne MAC-i. ustawiłem mu na 5 porcie adres 172.16.17.1 a dla switcha 172.16.17.3 i też działało do czasu
Jak przestało działać, konkretnie to straciłem kontakt z vlanem 4 (10.4.35.50) i poszedłem wpiąć się bezpośrednio do portu tego vlanu, bo wcześniej przez linksysa sie łaczyłem i nie moge sie nawet połaczyć bezpośrednio.
Konfig z mikrotika
Kod: Zaznacz cały
[admin@MikroTik] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE MTU L2MTU MAX-L2MTU MAC-ADDRESS
0 RS ether1-gateway ether 1500 1598 4074 4C:5E:0C:6E:13:92
1 R ether2-master-local ether 1500 1598 4074 4C:5E:0C:6E:13:93
2 R ether3-slave-local ether 1500 1598 4074 4C:5E:0C:6E:13:94
3 ether4-slave-local ether 1500 1598 4074 4C:5E:0C:6E:13:95
4 R ether5-slave-local ether 1500 1598 4074 4C:5E:0C:6E:13:96
5 XS wlan1 wlan 1500 2290 4C:5E:0C:6E:13:97
6 R bridge-local bridge 1500 1598 4C:5E:0C:6E:13:93
[admin@MikroTik] > ip address add
broadcast comment copy-from disabled netmask network address interface
[admin@MikroTik] > ip address add interface=ether5-slave-local address=172.16.17.1 netmask=255.255.255.0
broadcast comment copy-from disabled network
[admin@MikroTik] > ip address add interface=ether5-slave-local address=172.16.17.1 netmask=255.255.255.0
[admin@MikroTik] > ping 172.16.17.3
HOST SIZE TTL TIME STATUS
172.16.17.3 56 255 0ms
172.16.17.3 56 255 0ms
172.16.17.3 56 255 0ms
172.16.17.3 56 255 0ms
172.16.17.3 56 255 0ms
sent=5 received=5 packet-loss=0% min-rtt=0ms avg-rtt=0ms max-rtt=0ms
[admin@MikroTik] >
W mikrotiku switch jest porozpinany totalnie jakby kto się pytał....
z switcha
Kod: Zaznacz cały
3550#show ip route
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 172.16.17.1 to network 0.0.0.0
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.17.0 is directly connected, FastEthernet0/2
10.0.0.0/16 is subnetted, 1 subnets
C 10.4.0.0 is directly connected, Vlan4
S* 0.0.0.0/0 [1/0] via 172.16.17.1
3550#show ip arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.4.0.1 1 e02a.825e.03a0 ARPA Vlan4
Internet 10.4.35.50 - 000c.85ac.a280 ARPA Vlan4
Internet 172.16.17.3 - 000c.85ac.a280 ARPA FastEthernet0/2
Internet 10.1.0.253 - 000c.85ac.a280 ARPA Vlan1
3550#ping 172.16.17.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.17.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
3550#ping 172.16.17.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.17.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
3550#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.4.0.1 1 e02a.825e.03a0 ARPA Vlan4
Internet 10.4.35.50 - 000c.85ac.a280 ARPA Vlan4
Internet 172.16.17.1 0 4c5e.0c6e.1396 ARPA FastEthernet0/2
Internet 172.16.17.3 - 000c.85ac.a280 ARPA FastEthernet0/2
Internet 10.1.0.253 - 000c.85ac.a280 ARPA Vlan1
3550#ping 172.16.17.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.17.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
3550#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.4.0.1 2 e02a.825e.03a0 ARPA Vlan4
Internet 10.4.35.50 - 000c.85ac.a280 ARPA Vlan4
Internet 172.16.17.1 0 4c5e.0c6e.1396 ARPA FastEthernet0/2
Internet 172.16.17.3 - 000c.85ac.a280 ARPA FastEthernet0/2
Internet 10.1.0.253 - 000c.85ac.a280 ARPA Vlan1
3550#ping 172.16.17.1
[I W TYM MOMENCIE URYWA POŁACZENIE]
teraz ide z lapkiem wpiąć sie bezpośrednio, ustawiam sobie adres na eth0, bo wcześniej był na wlan0 i mam
Kod: Zaznacz cały
root@probook:~# ip a d 10.4.0.1/16 dev wlan0
root@probook:~# ip a a 10.4.0.1/16 dev eth0
root@probook:~# ip neigh show
10.4.35.50 dev eth0 lladdr 00:0c:85:ac:a2:80 STALE
172.16.16.3 dev wlan0 FAILED
192.168.88.1 dev wlan0 lladdr 4c:5e:0c:6e:13:93 STALE
10.4.35.50 dev wlan0 lladdr 00:0c:85:ac:a2:80 STALE
172.16.16.2 dev wlan0 FAILED
172.16.16.1 dev wlan0 lladdr 00:23:69:4a:73:28 REACHABLE
root@probook:~# ip neigh show
10.4.35.50 dev eth0 lladdr 00:0c:85:ac:a2:80 DELAY
172.16.16.3 dev wlan0 FAILED
192.168.88.1 dev wlan0 lladdr 4c:5e:0c:6e:13:93 STALE
10.4.35.50 dev wlan0 lladdr 00:0c:85:ac:a2:80 STALE
172.16.16.2 dev wlan0 FAILED
172.16.16.1 dev wlan0 lladdr 00:23:69:4a:73:28 REACHABLE
root@probook:~# !tcp
tcpdump -i eth0 -nnntttt
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
2015-06-10 19:53:54.422523 IP 10.4.0.1.43174 > 10.4.35.50.23: Flags [S], seq 4097948119, win 29200, options [mss 1460,sackOK,TS val 1666020 ecr 0,nop,wscale 7], length 0
2015-06-10 19:53:55.418692 IP 10.4.0.1.43174 > 10.4.35.50.23: Flags [S], seq 4097948119, win 29200, options [mss 1460,sackOK,TS val 1666270 ecr 0,nop,wscale 7], length 0
2015-06-10 19:53:56.413616 Loopback, skipCount 0, Reply, receipt number 0, data (40 octets)
2015-06-10 19:53:57.422677 IP 10.4.0.1.43174 > 10.4.35.50.23: Flags [S], seq 4097948119, win 29200, options [mss 1460,sackOK,TS val 1666771 ecr 0,nop,wscale 7], length 0
2015-06-10 19:53:59.426709 ARP, Request who-has 10.4.35.50 tell 10.4.0.1, length 28
2015-06-10 19:53:59.427283 ARP, Reply 10.4.35.50 is-at 00:0c:85:ac:a2:80, length 46
2015-06-10 19:54:01.426706 IP 10.4.0.1.43174 > 10.4.35.50.23: Flags [S], seq 4097948119, win 29200, options [mss 1460,sackOK,TS val 1667772 ecr 0,nop,wscale 7], length 0
2015-06-10 19:54:06.413918 Loopback, skipCount 0, Reply, receipt number 0, data (40 octets)
2015-06-10 19:54:09.442714 IP 10.4.0.1.43174 > 10.4.35.50.23: Flags [S], seq 4097948119, win 29200, options [mss 1460,sackOK,TS val 1669776 ecr 0,nop,wscale 7], length 0
2015-06-10 19:54:16.414163 Loopback, skipCount 0, Reply, receipt number 0, data (40 octets)
2015-06-10 19:54:25.474719 IP 10.4.0.1.43174 > 10.4.35.50.23: Flags [S], seq 4097948119, win 29200, options [mss 1460,sackOK,TS val 1673784 ecr 0,nop,wscale 7], length 0
2015-06-10 19:54:26.414412 Loopback, skipCount 0, Reply, receipt number 0, data (40 octets)
2015-06-10 19:54:28.680336 CDPv2, ttl: 180s, Device-ID '3550.lab', length 370
2015-06-10 19:54:30.482681 ARP, Request who-has 10.4.35.50 tell 10.4.0.1, length 28
2015-06-10 19:54:30.483254 ARP, Reply 10.4.35.50 is-at 00:0c:85:ac:a2:80, length 46
2015-06-10 19:54:36.414671 Loopback, skipCount 0, Reply, receipt number 0, data (40 octets)
2015-06-10 19:54:46.414947 Loopback, skipCount 0, Reply, receipt number 0, data (40 octets)
2015-06-10 19:54:56.415169 Loopback, skipCount 0, Reply, receipt number 0, data (40 octets)
2015-06-10 19:54:59.661858 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 1, length 64
2015-06-10 19:55:00.668832 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 2, length 64
2015-06-10 19:55:01.676809 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 3, length 64
2015-06-10 19:55:02.684881 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 4, length 64
2015-06-10 19:55:03.692900 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 5, length 64
2015-06-10 19:55:04.674685 ARP, Request who-has 10.4.35.50 tell 10.4.0.1, length 28
2015-06-10 19:55:04.675237 ARP, Reply 10.4.35.50 is-at 00:0c:85:ac:a2:80, length 46
2015-06-10 19:55:04.700880 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 6, length 64
2015-06-10 19:55:05.708909 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 7, length 64
2015-06-10 19:55:06.415507 Loopback, skipCount 0, Reply, receipt number 0, data (40 octets)
2015-06-10 19:55:06.716890 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 8, length 64
2015-06-10 19:55:07.724887 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 9, length 64
2015-06-10 19:55:08.732892 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 10, length 64
2015-06-10 19:55:09.740894 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 11, length 64
2015-06-10 19:55:10.748872 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 12, length 64
2015-06-10 19:55:11.756858 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 13, length 64
2015-06-10 19:55:12.764828 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 14, length 64
2015-06-10 19:55:13.772871 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 15, length 64
2015-06-10 19:55:14.780876 IP 10.4.0.1 > 10.4.35.50: ICMP echo request, id 3462, seq 16, length 64
2015-06-10 19:55:16.415691 Loopback, skipCount 0, Reply, receipt number 0, data (40 octets)
^C
38 packets captured
38 packets received by filter
0 packets dropped by kernel
Na drugim terminalu pinguje, proszę i **** nic...
Jeszcze jedno mam pytanie:
Kod: Zaznacz cały
3550#show version
Cisco IOS Software, C3550 Software (C3550-IPBASEK9-M), Version 12.2(35)SE, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Sun 03-Dec-06 14:34 by yenanh
Image text-base: 0x00003000, data-base: 0x00C472B0
ROM: Bootstrap program is C3550 boot loader
3550 uptime is 17 minutes
System returned to ROM by power-on
System image file is "flash:/c3550-ipbasek9-mz.122-35.SE.bin"
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco WS-C3550-24-PWR (PowerPC) processor (revision B0) with 65526K/8192K bytes of memory.
Processor board ID CAT0713Y1YA
Last reset from warm-reset
Running Layer2/3 Switching Image
Ethernet-controller 1 has 12 Fast Ethernet/IEEE 802.3 interfaces
Ethernet-controller 2 has 12 Fast Ethernet/IEEE 802.3 interfaces
Ethernet-controller 3 has 1 Gigabit Ethernet/IEEE 802.3 interface
Ethernet-controller 4 has 1 Gigabit Ethernet/IEEE 802.3 interface
24 FastEthernet interfaces
2 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
384K bytes of flash-simulated NVRAM.
Base ethernet MAC Address: 00:0C:85:AC:A2:80
Motherboard assembly number: 73-8100-06
Power supply part number: 341-0029-01
Motherboard serial number: CAT071306JV
Power supply serial number: LIT070700KQ
Model revision number: B0
Motherboard revision number: A0
Model number: WS-C3550-24PWR-SMI
System serial number: CAT0713Y1YA
Configuration register is 0x10F
3550#
Czytałem ze system z wersji SMI nie ma routingu, ale gdzie niegdzie pisze że jak masz komendę ip routing to OK. To jak to jest, a jedno z drugim się nie wyklucza?
Mieszkam na parterze, ale jakby co, to nie ma problemu aby iść wyżej i go zrzucić