Score:0

route all trafic from dummy0 to eth0

jp flag

I need all the IPs in the segment 10.10.0.0/29 to have access to the Internet via eth0.

ip link add dummy0 type dummy

ifconfig dummy0 10.10.0.1 netmask 255.255.255.248

ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever

2: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether 8a:d3:8c:4f:66:f5 brd ff:ff:ff:ff:ff:ff inet 10.10.0.1/29 brd 10.10.0.7 scope global dummy0 valid_lft forever preferred_lft forever

434: eth0@if435: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default link/ether 02:42:ac:13:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 172.19.0.2/16 brd 172.19.255.255 scope global eth0 valid_lft forever preferred_lft forever

eth0 - To have access to the internet on NAT

A.B avatar
cl flag
A.B
This is running in a container, maybe Docker. Seems that the question is lacking context. Why is this needed, can you explain with the actual problem to solve behind this (to avoid an [XY problem](https://xyproblem.info/))?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.