How to find the system connected to a particular port, if IP address is known.
If we need to troubleshoot the remote network and we have only ip address of the machine is known,and since some specific services are not running on a particular vlan and there is requirement of change in vlan.
Then we need to identify the connected switch port which we can not find without mac-address or physical tracing.Then in juniper we have an options for that, the command is
Let us assume IP given is 172.17.140.143
sh lldp neighbors
Outpout:
root@Hitesh-SW2> show lldp neighbors
Local Interface Parent Interface Chassis Id Port info System Name
ge-0/0/47.0 - 00:1c:2e:1a:52:80 3 hiteshpc
ge-0/0/38.0 - 0.0.0.0 SW Port SEP405539AD2574.
ge-0/0/10.0 - 172.17.140.79 SW Port SEP2C3ECF7B73AF.corp.local
ge-0/0/1.0 - 172.17.140.124 SW Port SEP2C3ECF7B8A19.corp.local
ge-0/0/4.0 - 172.17.140.143 SW Port SEP70CA9B997C5F.corp.local
ge-0/0/3.0 - 172.17.140.161 SW Port SEP70CA9B997EA0.corp.local
ge-0/0/2.0 - 172.17.140.202 SW Port SEP70CA9B997CD5.corp.local
ge-0/0/7.0 - 172.17.140.206 SW Port SEPE8B748EEC46F.corp.local
ge-0/0/11.0 - 172.17.140.210 SW Port SEPE8B748EEC470.corp.local
ge-0/0/15.0 - 172.17.140.213 SW Port SEPE8B748EEC3AB.corp.local
ge-0/0/17.0 - 172.17.140.215 SW Port SEP30E4DB825B42.corp.local
ge-0/0/14.0 - 172.17.140.216 SW Port SEP70CA9B997EED.corp.local
ge-0/0/12.0 - 172.17.140.217 SW Port SEP30E4DB8256EB.corp.local
Then from the above command we will trace the interface and once interface is located, we can change the respective vlan.
Since ge-0/0/4 is a abc vlan member and we need to change it to a member of vlan xyz.we then need to give following commands.
Command to check the interface vlan
root@JUN-L2-365-BF-SW2> show vlans
Name Tag Interfaces
abc 138
ge-0/0/4.0*
xyz 139
ge-0/0/14.0*, ge-0/0/47.0*
Process to change the vlan from abc to xyz.
step 1. Delete interface from vlan abc
delete interfaces ge-0/0/4 unit 0 family ethernet-switching vlan members abc
step 2. Add interface to vlan xyz
interfaces ge-0/0/4 unit 0 family ethernet-switching vlan members xyz
If we need to troubleshoot the remote network and we have only ip address of the machine is known,and since some specific services are not running on a particular vlan and there is requirement of change in vlan.
Then we need to identify the connected switch port which we can not find without mac-address or physical tracing.Then in juniper we have an options for that, the command is
Let us assume IP given is 172.17.140.143
sh lldp neighbors
Outpout:
root@Hitesh-SW2> show lldp neighbors
Local Interface Parent Interface Chassis Id Port info System Name
ge-0/0/47.0 - 00:1c:2e:1a:52:80 3 hiteshpc
ge-0/0/38.0 - 0.0.0.0 SW Port SEP405539AD2574.
ge-0/0/10.0 - 172.17.140.79 SW Port SEP2C3ECF7B73AF.corp.local
ge-0/0/1.0 - 172.17.140.124 SW Port SEP2C3ECF7B8A19.corp.local
ge-0/0/4.0 - 172.17.140.143 SW Port SEP70CA9B997C5F.corp.local
ge-0/0/3.0 - 172.17.140.161 SW Port SEP70CA9B997EA0.corp.local
ge-0/0/2.0 - 172.17.140.202 SW Port SEP70CA9B997CD5.corp.local
ge-0/0/7.0 - 172.17.140.206 SW Port SEPE8B748EEC46F.corp.local
ge-0/0/11.0 - 172.17.140.210 SW Port SEPE8B748EEC470.corp.local
ge-0/0/15.0 - 172.17.140.213 SW Port SEPE8B748EEC3AB.corp.local
ge-0/0/17.0 - 172.17.140.215 SW Port SEP30E4DB825B42.corp.local
ge-0/0/14.0 - 172.17.140.216 SW Port SEP70CA9B997EED.corp.local
ge-0/0/12.0 - 172.17.140.217 SW Port SEP30E4DB8256EB.corp.local
Then from the above command we will trace the interface and once interface is located, we can change the respective vlan.
Since ge-0/0/4 is a abc vlan member and we need to change it to a member of vlan xyz.we then need to give following commands.
Command to check the interface vlan
root@JUN-L2-365-BF-SW2> show vlans
Name Tag Interfaces
abc 138
ge-0/0/4.0*
xyz 139
ge-0/0/14.0*, ge-0/0/47.0*
Process to change the vlan from abc to xyz.
step 1. Delete interface from vlan abc
delete interfaces ge-0/0/4 unit 0 family ethernet-switching vlan members abc
step 2. Add interface to vlan xyz
interfaces ge-0/0/4 unit 0 family ethernet-switching vlan members xyz
Comments
Post a Comment