Results 1 to 2 of 2

Thread: vlan between switch and linux

Hybrid View

  1. #1

    vlan between switch and linux

    I'm having trouble to configure these two. Let me know if there are any online resources, though I've tried.

    Huawei S2700-26TP-SI-AC is a 26 port switch.
    I'd like make port 2 for trunking of vlan 2 and 5.
    Here vlan 2 will have port 3, 4 and
    vlan 5 will have port 5, 6, 7, 8.

    I've added two vlan at eth1 of my linux box using following commands:
    vconfig add eth1 2
    vconfig add eth1 5

    eth1.2 Link encap:Ethernet HWaddr 00:E0:4C:56:29:9D
    inet addr:10.0.0.33 Bcast:10.0.0.63 Mask:255.255.255.224

    eth1.5 Link encap:Ethernet HWaddr 00:E0:4C:56:29:9D
    inet addr:10.0.0.129 Bcast:10.0.0.159 Mask:255.255.255.224

    Now, from a host 10.0.0.35/27 connected to cisco2950 port 3, I can ping 10.0.0.34 but cannot reach 10.0.0.33 and

    From linuxbox 10.0.0.33/27 I can't ping 10.0.0.34 or 10.0.0.35.
    Interesting things is that I can see the packets trying from 10.0.0.35 using
    tcpdump -i eth1


    Little help will be highly appreciated.

  2. #2
    I've found the missing point, "switchport nonegotiate" for the trunk port.


    Just to inform, the Huawei S2700-26TP-SI-AC does not accept
    #neeswitchport trunk encapsulation dot1q
    as it has only dot1q and forced.


    switchport access vlan 2
    trunk port working with the above conf. I've configures it as this port can also work as access port.


    switchport trunk allowed vlan 2-10 // 2,5 might be better
    2-10 also works perfectly.


    I'll check the following entry though the packets are crossing through trunk port with existing conf:
    p route 10.0.0.32 255.255.255.224 vlan2
    ip route 10.0.0.128 255.255.255.224 vlan5

Similar Threads

  1. Need Help in VLan Bonding‏
    By shakirz1 in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 10-08-2011, 06:30 AM
  2. Make a Linux Switch (challenge!)
    By ardyw in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 07-05-2007, 11:56 AM
  3. KVM Switch
    By BurntAsh in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 03-18-2003, 07:03 PM
  4. Switch ad... for Linux :)
    By in forum General Chat
    Replies: 7
    Last Post: 02-01-2003, 05:12 AM
  5. KVM Switch
    By mcdougrs in forum Linux - Hardware, Networking & Security
    Replies: 6
    Last Post: 01-03-2003, 08:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •