Running application in network namespace

Kernels & Hardware, configuring network, installing services

Running application in network namespace

Postby metalfan » 2017-07-15 16:19

Hi,



today ive run some old code that creates a network namespace and allows me to run appliations to capture all traffic they produce with wireshark,
but today the commands did not run without error, its been some time since i last used them :(

the first four are ok and run without complaining:
Code: Select all
ip netns add test
ip link add veth-a type veth peer name veth-b
ip link set veth-a netns test
ip netns exec test ifconfig veth-a up 192.168.163.1 netmask 255.255.255.0


but this one:
Code: Select all
ifconfig veth-b up 192.168.163.254 netmask 255.255.255.0


fails with:
Code: Select all
veth-b: ERROR while getting interface flags: Kein passendes Gerät gefunden
SIOCSIFADDR: Kein passendes Gerät gefunden
veth-b: ERROR while getting interface flags: Kein passendes Gerät gefunden
SIOCSIFNETMASK: Kein passendes Gerät gefunden




now why is that?
metalfan
 
Posts: 79
Joined: 2011-02-04 14:30

Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable