How many gateways need to be configured for a 2 IP on 1 NIC setup?

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
Is this better? (currently used and working good)
[ipv4]
address1=10.0.0.13/32
address2=10.0.0.42/32
gateway1=10.0.0.1
gateway2=10.0.0.1
dns=10.0.0.1;
dns-search=
method=manual
or should I only define one gateway? (nmtui suggests this way)
[ipv4]
address1=10.0.0.13/32,10.0.0.1
address2=10.0.0.42/32
dns=10.0.0.1;
dns-search=
method=manual
- gateway after the client IP?
- gateway as separate lines?
- is defining multiple gateways harmful when the same?
- how do I know which connection will be preferred?
You can see, I have put some thought into this. What I have is working fine, but is it the correct way to do it? The "manpages" were absolutely NOT satisfying. The complete networking model before systemd.networking had way better documentation.
I would like your opinion if you are knowledgable on this subject, thanks!
networking systemd
add a comment |Â
up vote
1
down vote
favorite
Is this better? (currently used and working good)
[ipv4]
address1=10.0.0.13/32
address2=10.0.0.42/32
gateway1=10.0.0.1
gateway2=10.0.0.1
dns=10.0.0.1;
dns-search=
method=manual
or should I only define one gateway? (nmtui suggests this way)
[ipv4]
address1=10.0.0.13/32,10.0.0.1
address2=10.0.0.42/32
dns=10.0.0.1;
dns-search=
method=manual
- gateway after the client IP?
- gateway as separate lines?
- is defining multiple gateways harmful when the same?
- how do I know which connection will be preferred?
You can see, I have put some thought into this. What I have is working fine, but is it the correct way to do it? The "manpages" were absolutely NOT satisfying. The complete networking model before systemd.networking had way better documentation.
I would like your opinion if you are knowledgable on this subject, thanks!
networking systemd
You only need one gateway
â Panther
22 mins ago
Any input on if I should put it after the client address or below? If you post this as solution I gladly accept it.
â gavery
19 mins ago
I do not think the order matters
â Panther
13 mins ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Is this better? (currently used and working good)
[ipv4]
address1=10.0.0.13/32
address2=10.0.0.42/32
gateway1=10.0.0.1
gateway2=10.0.0.1
dns=10.0.0.1;
dns-search=
method=manual
or should I only define one gateway? (nmtui suggests this way)
[ipv4]
address1=10.0.0.13/32,10.0.0.1
address2=10.0.0.42/32
dns=10.0.0.1;
dns-search=
method=manual
- gateway after the client IP?
- gateway as separate lines?
- is defining multiple gateways harmful when the same?
- how do I know which connection will be preferred?
You can see, I have put some thought into this. What I have is working fine, but is it the correct way to do it? The "manpages" were absolutely NOT satisfying. The complete networking model before systemd.networking had way better documentation.
I would like your opinion if you are knowledgable on this subject, thanks!
networking systemd
Is this better? (currently used and working good)
[ipv4]
address1=10.0.0.13/32
address2=10.0.0.42/32
gateway1=10.0.0.1
gateway2=10.0.0.1
dns=10.0.0.1;
dns-search=
method=manual
or should I only define one gateway? (nmtui suggests this way)
[ipv4]
address1=10.0.0.13/32,10.0.0.1
address2=10.0.0.42/32
dns=10.0.0.1;
dns-search=
method=manual
- gateway after the client IP?
- gateway as separate lines?
- is defining multiple gateways harmful when the same?
- how do I know which connection will be preferred?
You can see, I have put some thought into this. What I have is working fine, but is it the correct way to do it? The "manpages" were absolutely NOT satisfying. The complete networking model before systemd.networking had way better documentation.
I would like your opinion if you are knowledgable on this subject, thanks!
networking systemd
networking systemd
edited 20 mins ago
asked 23 mins ago
gavery
114
114
You only need one gateway
â Panther
22 mins ago
Any input on if I should put it after the client address or below? If you post this as solution I gladly accept it.
â gavery
19 mins ago
I do not think the order matters
â Panther
13 mins ago
add a comment |Â
You only need one gateway
â Panther
22 mins ago
Any input on if I should put it after the client address or below? If you post this as solution I gladly accept it.
â gavery
19 mins ago
I do not think the order matters
â Panther
13 mins ago
You only need one gateway
â Panther
22 mins ago
You only need one gateway
â Panther
22 mins ago
Any input on if I should put it after the client address or below? If you post this as solution I gladly accept it.
â gavery
19 mins ago
Any input on if I should put it after the client address or below? If you post this as solution I gladly accept it.
â gavery
19 mins ago
I do not think the order matters
â Panther
13 mins ago
I do not think the order matters
â Panther
13 mins ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478124%2fhow-many-gateways-need-to-be-configured-for-a-2-ip-on-1-nic-setup%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You only need one gateway
â Panther
22 mins ago
Any input on if I should put it after the client address or below? If you post this as solution I gladly accept it.
â gavery
19 mins ago
I do not think the order matters
â Panther
13 mins ago