Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

12 Posts

60

November 4th, 2024 00:37

How to connect different IP bands

I am using s3124(n3124) switch.
As a layer3 switch, terminal devices and layer2 switches are connected to the bottom of the n3124 switch.
At this time, different IP bands were connected. Originally, I tried to use the NAT function, but it was not visible, so I set it up using the ip route function.
However, the settings were not set up properly, so I am writing this post.
What settings should I make to communicate by connecting different IP bands on the s3124(n3124) switch?
I would really appreciate it if you could answer.

Moderator

 • 

3.9K Posts

December 6th, 2024 09:42

Hi,

 

Alright. Here's a simplified configure to try. You might need to wipe all configuration to check the issue. Else the configuration will remain the same and might have issues. And I am assuming that you are connect Layer 2 Switch to 1/0/1 of PowerConnect S3124.

 

enable
configure

 

# Step 1: Create VLANs
vlan database
vlan 11
vlan 18
exit

 

# Step 2: Assign Interfaces to VLANs
interface gigabitethernet 1/0/15
switchport mode access
switchport access vlan 18
exit

interface gigabitethernet 1/0/1
switchport mode trunk
switchport trunk allowed vlan add 11,18
exit

 

# Step 3 and 4: Configure VLAN Interfaces (SVIs)
interface vlan 11
ip address 192.168.11.1 255.255.255.0
exit

interface vlan 18
ip address 192.168.18.1 255.255.255.0
exit

 

# Step 5: Enable IP Routing
ip routing

 

# Save Configuration
write memory

1 Rookie

 • 

12 Posts

November 4th, 2024 01:27

The configuration diagram is as follows, and I want to communicate from a device in the 192.168.12.* band to a device under the 192.168.11.* band swtich.

I tried setting the ip route as shown below, but communication did not work.

Dell(conf)# ip route 192.168.11.0 255.255.255.0 192.168.12.1

Dell(conf)# ip route 192.168.11.0 255.255.255.0 192.168.13.1

Also, I tried setting the router ospf, but communication did not work.

Dell(conf)#router ospf 100

Dell(conf-router_ospf-100)#network 192.168.11.0/24 area 0

I wonder if my network settings are correct.

Could you please suggest a solution?

(edited)

Moderator

 • 

3.9K Posts

November 4th, 2024 08:40

Hi,

 

I am confused on which model are you using. Is it S3124 or N3124? Both are different switches. One uses OS9 and another OS6. 

 

NAT is not supported in N3124.

 

The configuration that you mentioned above is incorrect. You only need to create 3 vLANs accordingly to your IP address. Then assign port members to the vLAN. Lastly, create trunk access from L3 switch to L2 switch to allow vLANs to communicate accordingly. 

1 Rookie

 • 

12 Posts

November 6th, 2024 07:16

@DELL-Joey C​ 

This is a N3124 switch.
I want to create 3 VLANs and assign each port to the corresponding VLAN through trunk access.
However, as you can see in the image above, I could not find the VLAN assignment setting through trunk in the N3124 switch.

Also, I set the private-vlan mode primary function to the VLAN.

I wonder if my network settings are correct.

Could you please suggest a solution?

(edited)

Moderator

 • 

3.8K Posts

November 6th, 2024 08:02

Hi,

to create VLA you have to enter in configuration mode:

 

DellSwitch# configure

 

then to create VLAN command

 

DellSwitch(config)# vlan 10
DellSwitch(config)# vlan 20
DellSwitch(config)# vlan 30

 

then to assign ports to VLANs, for example:

DellSwitch(config)# interface range gi1/0/1-10
DellSwitch(config-if-range)# switchport access vlan 10
DellSwitch(config-if-range)# exit

 

then you set up trunk ports and enable routing on the switch

Thanks

 

1 Rookie

 • 

12 Posts

November 6th, 2024 09:04

@DELL-Marco B​ 

Hello
Thank you for your kind reply.
I knew how to create a VLAN.
However, as shown below, on the switch I use, after creating a VLAN, the switchport access vlan command is not entered at all on the port.

Moderator

 • 

3.8K Posts

November 6th, 2024 11:39

The syntax may vary based on the firmware.

Which is your firmware version?

For example for 6.3.0.1 firmware the command is for example

 

console(config)#vlan 10
console(config-vlan10)#interface vlan 10
console(config-if-vlan10)#ip address 1.2.3.1 255.255.0.0
console(config-if-vlan10)#interface gi1/0/1
console(config-if-Gi1/0/1)#switchport mode access
console(config-if-Gi1/0/1)#switchport access vlan 10

1 Rookie

 • 

12 Posts

November 7th, 2024 01:58

@DELL-Marco B​ 

This is about firmware versions of switch.

Dell Real Time Operating System Software
Dell Operating System Version:  2.0
Dell Application Software Version:  9.11(2.8P5)
Copyright (c) 1999-2017 by Dell Inc. All Rights Reserved.
Build Time: Wed Nov 27 08:03:41 2019
Build Path: /build/build01/SW/SRC
Dell Networking OS uptime is 2 week(s), 2 day(s), 19 hour(s), 51 minute(s)

System image file is "system://A"

System Type: S3124 
Control Processor: Broadcom 56340 (ver A0) with 2 Gbytes (2147483648 bytes) of memory, core(s) 1.

1G bytes of boot flash memory.

  1 28-port GE/TE (S3100)
 24 GigabitEthernet/IEEE 802.3 interface(s)
  2 Ten GigabitEthernet/IEEE 802.3 interface(s)

How do the vlan and trunk settings change?

Is there a manual with syntax related to the switch?

(edited)

Moderator

 • 

3.9K Posts

November 7th, 2024 05:46

Hi,

 

Based on the switch output, the switch is S3124, not N3124. OS6 would be different from OS9. 

 

Here's to create vLAN and tag ports: https://dell.to/40GSd0d 

 

Here's to create trunk access: https://dell.to/3NTGe7Q. (You can ignore the switch model, as the switch uses the same OS9. Command is the same)

1 Rookie

 • 

12 Posts

November 18th, 2024 09:31

@DELL-Joey C​ 

I set the 1/1 port and the 1/15 port to vlan 11 and vlan 18 respectively.

(The 1/1 port is a Layer 2 switch, and the 1/15 port is pc1.)

I thought I assigned vlans to the port members and accessed the trunk by setting the tag and trunk.
However, when I run ping, it does not communicate properly.

Dell(conf)#int gigabitethernet 1/1
Dell(conf-if-gi-1/1)#show config
!
interface GigabitEthernet 1/1
 no ip address
 portmode hybrid
 switchport
 vlan-stack trunk
 no shutdown

Dell(conf-if-vl-11-stack)#show config
!
interface Vlan 11
 name ctrl
 ip address 192.168.11.1/24
 vlan-stack compatible
 member GigabitEthernet 1/1
 no shutdown

Dell(conf)#interface gigabitethernet 1/15
Dell(conf-if-gi-1/15)#show config
!
interface GigabitEthernet 1/15
 no ip address
 portmode hybrid
 switchport
 vlan-stack trunk
 no shutdown

Dell(conf-if-vl-18-stack)#show config
!
interface Vlan 18
 name user4
 ip address 192.168.18.1/24
 vlan-stack compatible
 member GigabitEthernet 1/15
 no shutdown

pc1 is set to the 192.168.18.2 band, and ping 192.168.18.2 is set properly and communicates as shown below.
However, when connected to the 1/15 port, it says that the 192.168.18.1 band does not communicate.
I wonder if I set it correctly.

C:\Users\PALM>ping 192.168.18.1

Ping 192.168.18.1 with 32 bytes of data:Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 192.168.18.1 : 

    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\Users\PALM>ping 192.168.18.2

Ping 192.168.18.2 with 32 bytes of data:
Reply from 192.168.18.2: bytes=32 time<1ms TTL=128
Reply from 192.168.18.2: bytes=32 time<1ms TTL=128
Reply from 192.168.18.2: bytes=32 time<1ms TTL=128
Reply from 192.168.18.2: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.18.2 : 
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip trimes in milli-seconds:
   Minimum = 0ms, Maximum = 0ms, Average = 0ms

Moderator

 • 

2.8K Posts

November 18th, 2024 12:19

Hi,

I also noticed that you are having problems with VLAN. First of all ensure that VLANs are configured correctly and active You can check their status with the command show vlan.

 

Since you are using hybrid mode, make sure the ports accept tagged and untagged traffic. Set them to access mode if the ports connected to PCs only need untagged traffic.

 

you can check if trunking is properly configured and That the VLANs are in allowed list on the Trunk ports. You can validate this with show trunk.

 

I would verify that the IP addresses and subnet masks on the switch and PC are correct.

 

These are the commands that you will be using:

 

To check VLAN status:

 

Dell# show vlan

To check trunk status:

 

Dell# show trunk

To check interface status:

 

Dell# show interfaces status

 

Hope that helps!

1 Rookie

 • 

12 Posts

November 19th, 2024 07:46

@DELL-Erman O​ 

Ports 1/1 and 1/15 are tagged on vlan 11 and vlan 18, respectively.
Also, ports 1/1, 1/15, and 1/17 on vlan1 are untagged, but I wonder if this will affect the vlan settings.

Dell#show vlan
Codes: * - Default VLAN, G - GVRP VLANs, R - Remote Port Mirroring VLANs, P - Primary, C - Community, I - Isolated
       O - Openflow, Vx - Vxlan
Q: U - Untagged, T - Tagged
   x - Dot1x untagged, X - Dot1x tagged
   o - OpenFlow untagged, O - OpenFlow tagged
   G - GVRP tagged, M - Vlan-stack
   i - Internal untagged, I - Internal tagged, v - VLT untagged, V - VLT tagged
    NUM    Status    Description                     Q Ports
*   1      Active                                    U Gi 1/1,1/15,1/17
    11     Active                                    M Gi 1/1
    15     Inactive                                  
    16     Inactive                                  
    18     Active                                    M Gi 1/15
    19     Inactive    

The switch is S3124, so there is no Show trunk command in the os9 environment.
What command can I use to check the trunk configuration?

Dell#show interfaces status 
Port                 Description  Status Speed        Duplex Vlan  
Gi 1/1                            Up     1000 Mbit    Full   1,11
Gi 1/2                            Down   Auto         Auto   --
Gi 1/3                            Down   Auto         Auto   --
Gi 1/4                            Down   Auto         Auto   --
Gi 1/5                            Down   Auto         Auto   --
Gi 1/6                            Down   Auto         Auto   --
Gi 1/7                            Down   Auto         Auto   --
Gi 1/8                            Down   Auto         Auto   --
Gi 1/9                            Down   100 Mbit     Full   --
Gi 1/10                           Down   Auto         Auto   --
Gi 1/11                           Down   100 Mbit     Full   --
Gi 1/12                           Down   Auto         Auto   --
Gi 1/13                           Down   100 Mbit     Full   --
Gi 1/14                           Down   Auto         Auto   --
Gi 1/15                           Up     1000 Mbit    Full   1,18
Gi 1/16                           Down   Auto         Auto   --
Gi 1/17                           Down   Auto         Auto   1
Gi 1/18                           Down   Auto         Auto   --
Gi 1/19                           Down   Auto         Auto   --
Gi 1/20                           Down   Auto         Auto   --
....

Is it because tagged and untagged are not properly specified using hybrid mode, so communication is not working well?

(edited)

Moderator

 • 

2.8K Posts

November 19th, 2024 12:27

Hi, Could you try this "show interfaces switchport" for OS9?

I honestly suspected tagged and untagged are not specific but I am not completely sure. I did some brainstorming. To enable ports to manage multiple VLANs, you might need configure them in general mode and define the specific VLANs. I think it can allow the port to handle all the traffic. 

1 Rookie

 • 

12 Posts

December 2nd, 2024 08:34

@DELL-Erman O​ 

The result of #show interfaces switchport is as follows.

Dell#show interfaces switchport 
Codes:  U - Untagged, T - Tagged
        x - Dot1x untagged, X - Dot1x tagged
        G - GVRP tagged, M - Trunk
        i - Internal untagged, I - Internal tagged, v - VLT untagged, V - VLT tagged
Name: GigabitEthernet 1/1
802.1QTagged: Hybrid
Vlan membership:
Q       Vlans
U       1
M       11
Native VlanId:    1.
Name: GigabitEthernet 1/15
802.1QTagged: Hybrid
Vlan membership:
Q       Vlans
U       1
M       18
Native VlanId:    1.
Name: GigabitEthernet 1/17
802.1QTagged: Hybrid
Vlan membership:
Q       Vlans
U       1
Native VlanId:    1.

-----------------------------------------------------------------------------------------------------------------

To explain the current situation, I am configuring the network to remotely access PC2 under L2 from PC1 through L3 switch.
(Please refer to the configuration diagram below)

Dell(conf-if-vl-18-stack)#show config
!
interface Vlan 18
 name user4
 ip address 192.168.18.1/24
 vlan-stack compatible
 member GigabitEthernet 1/15
 no shutdown
Dell(conf)#interface gigabitethernet 1/15
Dell(conf-if-gi-1/15)#show config
!
interface GigabitEthernet 1/15
 no ip address
 portmode hybrid
 switchport
 vlan-stack trunk
 no shutdown

Currently, I have tagged each port using VLAN 11,18 and set trunk function on G 1/1 and G1/15 ports.
However, when I checked communication with ping, I confirmed that communication is possible in the IP band of VLAN 11 and VLAN 18 on the S3124 switch.
Communication is not possible between the IP band of PC1 and L2 switch.

Dell#ping 192.168.18.1
Type Ctrl-C to abort.
Sending 5, 100-byte ICMP Echos to 192.168.18.1, timeout is 2 seconds:
!!!!!
Success rate is 100.0 percent (5/5), round-trip min/avg/max = 0/0/0 (ms)
Dell#ping 192.168.11.1
Type Ctrl-C to abort.
Sending 5, 100-byte ICMP Echos to 192.168.11.1, timeout is 2 seconds:
!!!!!
Success rate is 100.0 percent (5/5), round-trip min/avg/max = 0/0/0 (ms)
Dell#ping 192.168.18.50
Type Ctrl-C to abort.
Sending 5, 100-byte ICMP Echos to 192.168.18.50, timeout is 2 seconds:
.....
Success rate is 0.0 percent (0/5)

Moderator

 • 

3.9K Posts

December 2nd, 2024 09:47

Hi,

 

The configuration have some conflict. Referring to your diagram, 1/15 is a access port instead of a trunk port. In your configuration, 1/15 configured as trunk port. 

 

For IP 192.168.18.50, what is the configuration? 

No Events found!

Top