Jeg har fået en opgave hos en kunde hvor kunden ikke har styr på hvilke servere der sider i hvilke stik i switchen i sit datacenter, hvilket vi har behov for hvis vi skal kunne løse opgaven, derfor kommer det til at foregå remote.
Switchen på stedet er en DLINK DGS-12010-48
telnet x.x.x.x Trying x.x.x.x... Connected to x.x.x.x. Escape character is '^]'. DGS-1210-48 login: admin Password: DGS-1210-48>
Det er en semi-intilligent switch, udemærket til access switch, dog lidt begrænset i funktioner, men hvis ikke man har behovet er det jo ligemeget. Heldigvis kan den give os svar på hvilke mac adresser der sider i hvilke porte, havde switchen været et nummer størrere ville jeg have forventet at den også kunne gøre det på IP Niveau, men here we goes:
DGS-1210-48> debug info % sgementation fault log file : File doesn't exist !!! % ARP table : Address Hardware Address Type Interface Mapping ------- ---------------- ---- --------- ------- 10.0.0.1 00:00:5e:00:01:0a ARPA vlanMgmt Dynamic 10.0.0.2 5c:5e:ab:d2:ea:f0 ARPA vlanMgmt Dynamic 10.0.0.3 f8:c0:01:18:ea:f0 ARPA vlanMgmt Dynamic 10.0.0.23 00:1b:78:2e:a1:b0 ARPA vlanMgmt Dynamic 10.0.0.25 00:1f:29:c5:10:22 ARPA vlanMgmt Dynamic 10.0.0.32 00:1b:78:2e:a1:b0 ARPA vlanMgmt Dynamic % MAC table : Vlan Mac Address Type Ports ---- ----------- ---- ----- 1 00:00:5e:00:01:0a Learnt Gi0/48 1 00:0c:29:0a:bc:4a Learnt Gi0/1 1 00:0c:29:17:0e:d5 Learnt Gi0/1 1 00:0c:29:43:17:a7 Learnt Gi0/1 1 00:0c:29:49:e6:8e Learnt Gi0/1 1 00:0c:29:77:43:8c Learnt Gi0/1 1 00:0c:29:88:96:73 Learnt Gi0/1 1 00:0c:29:88:96:7d Learnt Gi0/1 1 00:0c:29:93:42:af Learnt Gi0/1 1 00:0c:29:ad:4d:9f Learnt Gi0/1 1 00:0c:29:b5:42:84 Learnt Gi0/1 1 00:0c:29:b5:b1:21 Learnt Gi0/1 1 00:0c:29:b8:25:44 Learnt Gi0/1 1 00:0c:29:ca:a2:9b Learnt Gi0/1 1 00:0c:29:e4:e7:4a Learnt Gi0/1 1 00:0c:29:ed:23:26 Learnt Gi0/1 1 00:16:3e:00:00:11 Learnt Gi0/5 1 00:16:3e:02:74:63 Learnt Gi0/5 1 00:16:3e:3e:ec:db Learnt Gi0/5 1 00:16:3e:3e:ec:dc Learnt Gi0/5 1 00:16:3e:3e:ec:dd Learnt Gi0/5 1 00:16:3e:3e:ec:dd Learnt Gi0/5 1 00:16:3e:3e:ec:de Learnt Gi0/5 1 00:1b:78:2e:a1:b0 Learnt Gi0/48 1 00:1b:78:35:1a:fc Learnt Gi0/7 1 00:1b:78:96:8f:6e Learnt Gi0/9 1 00:1b:78:96:8f:70 Learnt Gi0/23 1 00:1b:78:9b:43:0c Learnt Gi0/21 1 00:1b:78:9c:0f:50 Learnt Gi0/48 1 00:1c:c4:5e:32:1c Learnt Gi0/48 1 00:1c:c4:5e:32:1e Learnt Gi0/48 1 00:1e:4f:03:51:cc Learnt Gi0/48 1 00:1f:29:c5:10:22 Learnt Gi0/3 1 00:1f:29:c5:b3:fa Learnt Gi0/19 1 00:26:2d:00:5f:aa Learnt Gi0/5 1 00:c0:b7:22:0b:44 Learnt Gi0/48 1 00:c0:b7:7e:5c:6b Learnt Gi0/46 1 2a:60:bc:5a:bc:6a Learnt Gi0/3 1 46:b9:f9:dc:a5:01 Learnt Gi0/3 1 5c:5e:ab:d2:ea:f0 Learnt Gi0/48 1 5e:0a:2e:dc:f7:15 Learnt Gi0/48 1 6e:08:07:9e:47:c0 Learnt Gi0/3 1 7e:af:a6:d5:79:63 Learnt Gi0/3 1 98:4b:e1:0b:15:c4 Learnt Gi0/1 1 98:4b:e1:0b:15:cc Learnt Gi0/17 1 9e:b6:b0:3e:0c:3a Learnt Gi0/3 1 b8:a3:86:82:f6:f7 Learnt Gi0/48 1 f8:c0:01:18:ea:f0 Learnt Gi0/48 Total Mac Addresses displayed: 47
Som du kan se er der en fin liste over hvilke MAC adresser der kan nåes igennem hvilke porte, og jeg har tænkt mig at bruge en lokal servers arp tabel til at koble dem sammen med nogle ip adresser og den vej igennem finde ud af hvilke maskiner der sider i hvilke porte