multiple dhcp ips on a single interface

Lezárva Kiadva: 5 évvel ezelőtt Kiszállításkor fizetve
Lezárva Kiszállításkor fizetve

I bought orange pi one and I mount ubuntu 18.04.

I and my friend setup as below.

but we can didn't ping.

ping -c 4 -I vir1 [login to view URL]

and we don't know it is right or fault.

so, can you fix our fault?

/etc/network/interfaces

# Primary interface

auto eth0

iface eth0 inet dhcp

up ip link set dev eth0 promisc on

# Macvlan interfaces

auto vir1

iface vir1 inet dhcp

pre-up ip link add link eth0 address 02:cd:ab:00:10:01 vir1 type macvlan

post-down ip link delete vir1

auto vir2

iface vir2 inet dhcp

pre-up ip link add link eth0 address 02:cd:ab:00:10:02 vir2 type macvlan

post-down ip link delete vir2

pptpd setup

sudo apt-get install pptpd

local/remote ip

/etc/[login to view URL]

localip [login to view URL]

remoteip 192.168.0.100-200

DNS

/etc/ppp/pptpd-options

ms-dns 8.8.8.8

ms-dns 8.8.4.4

ADD USER

/etc/ppp/chap-secrets

cbd pptpd 1234 [login to view URL]

cbd2 pptpd 1234 [login to view URL]

NAT

iptables -t nat -A POSTROUTING -s [login to view URL] -o vir1 -j MASQUERADE

iptables -t nat -A POSTROUTING -s [login to view URL] -o vir2 -j MASQUERADE

/etc/[login to view URL]

/sbin/iptables-restore < /etc/[login to view URL]

IP forwarding

/etc/[login to view URL]

net.ipv4.ip_forward=1

sudo sysctl -p

MTU

/etc/ppp/[login to view URL]

ifconfig $1 mtu 1500

sudo chmod a+x /etc/ppp/[login to view URL]

sudo pptpd restart

And, my final goal is that use many ip throuth pptp.

When I receive same subnet ips. Does that also have no problem?

Linux Python Script telepítés Shell script Ubuntu

Projektazonosító: #17418787

A projektről

8 ajánlat Távolról teljesíthető projekt Utoljára aktív: 5 évvel ezelőtt

8 szabadúszó tett átlagosan 135$ összegű árajánlatot erre a munkára

nirmaljeetverma

As per my expertise in this field, I can assure you that I can easily do this task. And my only aim is to provide you with the fastest and the best solution for your job.

$155 USD 3 napon belül
(89 vélemény)
5.5
VarunUnix

Hello, So how is your internet connection now? How you are getting DHCP address ? Do you have a dhcp server or device ? Need few clarifications. Thank You

$94 USD 2 napon belül
(70 vélemény)
5.6
degabb

Good day! Your problem is two interfaces (two DHCP clients and two default routes). You can: 1) config one default route manually 2) use one interface without DHCP. 3) disable default route for one of the networks Továbbiak

$120 USD 3 napon belül
(16 vélemény)
4.6
seamantopcoder

LINUX expert HERE. Hi, I understood your problem. It's a problem of router. I have some experiences with yours. Please ping me so that we can discuss more. Many thanks.

$249 USD 3 napon belül
(4 vélemény)
3.0
carlosspf24

From what I understand they want to delete IP from the other side of the pptp, and it is not working, apparently it is a flaw, there is no problem, the configurations and the options for how to do it. I have more than Továbbiak

$133 USD 10 napon belül
(2 vélemény)
2.5
singhalyogi22

Hi, its an error and have fixed it several times.

$55 USD 3 napon belül
(4 vélemény)
1.4
Tachikomas

Hello. As a linux expert and a cybersecurity expert i can help you with this issue. Best Regards. Maxime CHEMINADE

$155 USD 1 napon belül
(0 vélemény)
0.0