From bd41d245635585a5723c664992c91ed1bb31fcb2 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 19 Feb 2018 12:12:04 +0100 Subject: ggsn-test: Use ggsn local ip as announced DNS This way the address is reachable for ggsn system and can route the packet correctly. This commit fixes runtime failures of GGSN_Tests.TC_pdp4_act_deact_gtpu_access when running inside the container, since that test uses the DNS address to attempt a ping and waits for a response. If the address is non reachable/routable from osmo-ggsn tun, then the packet is dropped by the kernel and no ping response is sent back. --- ggsn-test/GGSN_Tests.cfg | 2 ++ ggsn-test/osmo-ggsn.cfg | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ggsn-test/GGSN_Tests.cfg b/ggsn-test/GGSN_Tests.cfg index da56a1b..d832853 100644 --- a/ggsn-test/GGSN_Tests.cfg +++ b/ggsn-test/GGSN_Tests.cfg @@ -14,5 +14,7 @@ GGSN_Tests.m_bind_ip_gtpu := "172.18.3.202" # GGSN IP address GGSN_Tests.m_ggsn_ip_gtpc := "172.18.3.201" GGSN_Tests.m_ggsn_ip_gtpu := "172.18.3.201" +# GGSN announced DNS address +GGSN_Tests.m_ggsn_ip4_dns1 := "172.18.3.201" [EXECUTE] diff --git a/ggsn-test/osmo-ggsn.cfg b/ggsn-test/osmo-ggsn.cfg index ad9bc22..5f03bc3 100644 --- a/ggsn-test/osmo-ggsn.cfg +++ b/ggsn-test/osmo-ggsn.cfg @@ -71,7 +71,7 @@ ggsn ggsn0 tun-device tun4 type-support v4 ip prefix dynamic 176.16.222.0/24 - ip dns 0 192.168.100.1 + ip dns 0 172.18.3.201 ip dns 1 8.8.8.8 ip ifconfig 176.16.222.0/24 no shutdown -- cgit v1.2.3