Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


82 posts

Master Geek

Trusted

Topic # 143257 8-Apr-2014 13:10
Send private message

Hi there, I have a switch configured with a couple of vlans.
If I create a loopback interface on the switch and configure it with an ip from a vlan range, will I be able to ping from the switch using that loopback interface as a source (in order to mimick a ping coming from a real device plugged that switche's vlan?)
The problem is that I want to remotely ping out from the switch using that vlan, but there are no devices plugged into the switch vlan ports.

Thanks for any help.

Create new topic
1948 posts

Uber Geek
+1 received by user: 469
Inactive user


  Reply # 1020635 8-Apr-2014 13:36
Send private message

You'll need to trunk each VLAN you want back to your host if you want to be inside of the same VLAN. That's the whole point of VLANs to keep things separate.

Otherwise you are routing from one network to another via Layer3.

In Linux it's pretty easy to setup multiple single or even double tagged VLANs and then bring up interfaces to ping out that particular VLAN as and when needed.

80 posts

Master Geek
+1 received by user: 5


  Reply # 1022259 9-Apr-2014 16:49
Send private message

what type of switch are you using as this will decide on what you can and cant do.

237 posts

Master Geek
+1 received by user: 57


  Reply # 1022629 10-Apr-2014 09:17
Send private message

Is the management IP of the switch on a different vlan? If not, just create a vlan interface on the vlan in question and chuck an IP on it. Throw in a default route and then ping away. 
Don't forget to add the vlan to the vlan DB.
This, of course, is assuming it's a cisco switch.



Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07


All or Nothing: New Zealand All Blacks arrives on Amazon Prime Video
Posted 2-Jun-2018 16:21


Innovation Grant, High Tech Awards and new USA office for Kiwi tech company SwipedOn
Posted 1-Jun-2018 20:54


Commerce Commission warns Apple for misleading consumers about their rights
Posted 30-May-2018 13:15


IBM leads Call for Code to use cloud, data, AI, blockchain for natural disaster relief
Posted 25-May-2018 14:12


New FUJIFILM X-T100 aims to do better job than smartphones
Posted 24-May-2018 20:17


Stuff takes 100% ownership of Stuff Fibre
Posted 24-May-2018 19:41



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.