Commit f588d040 authored by Bin Xiao's avatar Bin Xiao

add br main for debugging and solved the issue that when ping from UE, there is no response

parent 234006ad
......@@ -239,12 +239,21 @@ function main()
# Check table 200 lte in /etc/iproute2/rt_tables
fgrep lte /etc/iproute2/rt_tables > /dev/null
if [ $? -ne 0 ]; then
bash -c echo "200 lte " >> /etc/iproute2/rt_tables
bash -c "echo '200 lte ' >> /etc/iproute2/rt_tables"
fi
ip rule add fwmark 1 table lte
ifconfig oip1 192.168.0.2 up
iptables -t mangle -A PREROUTING -d 192.168.0.2/24 -j MARK --set-mark 1
iptables -A OUTPUT -t mangle -s 192.168.0.2/24 -j MARK --set-mark 1
ip rule add fwmark 0x1 table lte
ip route add default dev oip1 table lte
sysctl -w net.ipv4.conf.oip1.rp_filter=0
sysctl -w net.ipv4.conf.all.rp_filter=0
sysctl -w net.ipv4.conf.default.rp_filter=0
exe_arguments="$exe_arguments -c template_5.xml"
exe_arguments="$exe_arguments -s15 -AAWGN -y1 -b1 -u1 -Q0"
cd $OPENAIR_DIR/targets/bin
......@@ -260,6 +269,7 @@ function main()
chmod 777 ~/.gdb_enb_ue_s1
echo "file $OPENAIR_DIR/targets/bin/oaisim.Rel10" > ~/.gdb_enb_ue_s1
echo "set args $exe_arguments" >> ~/.gdb_enb_ue_s1
echo "br main" >> ~/.gdb_enb_ue_s1
echo "run" >> ~/.gdb_enb_ue_s1
cat ~/.gdb_enb_ue_s1
gdb -n -x ~/.gdb_enb_ue_s1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment