ls1028a : l2switch configuration without bridge

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ls1028a : l2switch configuration without bridge

452 Views
bharat_chaudhar
Contributor II


For my setup

similar to  4.2.12.3.3.3.2 CPU port without bridge


(192.168.207.51/24)-eth2-dev1 ------------ ls1028-swp3 (192.168.207.41/24)

on LS1028
swp3 UP bc:8d:bf:7c:5b:03 <BROADCAST,MULTICAST,UP,LOWER_UP>
swp3 UP 192.168.207.41/24

on dev1
eth2 192.168.207.51/24 u/u

ping 192.168.207.41
PING 192.168.207.41 (192.168.207.41) 56(84) bytes of data.
From 192.168.207.51 icmp_seq=1 Destination Host Unreachable
From 192.168.207.51 icmp_seq=2 Destination Host Unreachable
From 192.168.207.51 icmp_seq=3 Destination Host Unreachable
From 192.168.207.51 icmp_seq=4 Destination Host Unreachable
From 192.168.207.51 icmp_seq=5 Destination Host Unreachable

arp entry
192.168.207.41 (incomplete) eth2

how do i debug this?

I have also tried the provided script but that does not help either.

the pings still fail. how do i debug this?

 

#!/bin/bash
#
# Simple switch configuration without bridge
# Assume both ENETC and Felix drivers are already loaded
MAC_ROOT=bc:8d:bf:7c:5b
swpip=192.168
# Configure switch ports
swps=($(ls /sys/bus/pci/devices/0000:00:00.5/net/))
let nr=${#swps[@]}
for (( i=0; i<$nr; i++ ))
do
ip link set ${swps[$i]} address $MAC_ROOT:$(echo "${swps[$i]}" | tr -dc '0-9')
ip addr add ${swpip}.${i}.1/24 dev ${swps[$i]}
ip link set ${swps[$i]} up
done
# bring up ENETC Port3
seth=$(ls /sys/bus/pci/devices/0000:00:00.6/net/)
ip link set $seth up

 

 

0 Kudos
Reply
0 Replies