Need help in Ubuntu router with static IP












0















I have a Linksys modem+router and Ubuntu server 12.04. My LAN networking is connecting to the internet through the Linksys router. Now I enable NAT in Ubuntu Server. Only my LAN segment is ping able from the Ubuntu Server. I need to config the Static IP to the other end of the interface.
NOW....
Internet<=====>Linksys<====>LAN and Ubuntu Server



What I need...
Internet<===>Ubuntu Server<====>LAN.



IP address details...



Linksys router = 192.168.1.1(gateway) 122.165.67.x(static)
Ubuntu Server = eth0 -122.165.67.x eth1 - 192.168.1.20



I think I made some mistake in eth0, setting the same IP as the Static IP.
Ubuntu Server can ping 192.168.1.x network but not to the internet. Which IP address I should set for the eth0 interface










share|improve this question

























  • help.ubuntu.com/community/Router

    – krowe
    Nov 11 '14 at 6:54
















0















I have a Linksys modem+router and Ubuntu server 12.04. My LAN networking is connecting to the internet through the Linksys router. Now I enable NAT in Ubuntu Server. Only my LAN segment is ping able from the Ubuntu Server. I need to config the Static IP to the other end of the interface.
NOW....
Internet<=====>Linksys<====>LAN and Ubuntu Server



What I need...
Internet<===>Ubuntu Server<====>LAN.



IP address details...



Linksys router = 192.168.1.1(gateway) 122.165.67.x(static)
Ubuntu Server = eth0 -122.165.67.x eth1 - 192.168.1.20



I think I made some mistake in eth0, setting the same IP as the Static IP.
Ubuntu Server can ping 192.168.1.x network but not to the internet. Which IP address I should set for the eth0 interface










share|improve this question

























  • help.ubuntu.com/community/Router

    – krowe
    Nov 11 '14 at 6:54














0












0








0








I have a Linksys modem+router and Ubuntu server 12.04. My LAN networking is connecting to the internet through the Linksys router. Now I enable NAT in Ubuntu Server. Only my LAN segment is ping able from the Ubuntu Server. I need to config the Static IP to the other end of the interface.
NOW....
Internet<=====>Linksys<====>LAN and Ubuntu Server



What I need...
Internet<===>Ubuntu Server<====>LAN.



IP address details...



Linksys router = 192.168.1.1(gateway) 122.165.67.x(static)
Ubuntu Server = eth0 -122.165.67.x eth1 - 192.168.1.20



I think I made some mistake in eth0, setting the same IP as the Static IP.
Ubuntu Server can ping 192.168.1.x network but not to the internet. Which IP address I should set for the eth0 interface










share|improve this question
















I have a Linksys modem+router and Ubuntu server 12.04. My LAN networking is connecting to the internet through the Linksys router. Now I enable NAT in Ubuntu Server. Only my LAN segment is ping able from the Ubuntu Server. I need to config the Static IP to the other end of the interface.
NOW....
Internet<=====>Linksys<====>LAN and Ubuntu Server



What I need...
Internet<===>Ubuntu Server<====>LAN.



IP address details...



Linksys router = 192.168.1.1(gateway) 122.165.67.x(static)
Ubuntu Server = eth0 -122.165.67.x eth1 - 192.168.1.20



I think I made some mistake in eth0, setting the same IP as the Static IP.
Ubuntu Server can ping 192.168.1.x network but not to the internet. Which IP address I should set for the eth0 interface







networking ubuntu router






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 13 at 13:03









Hennes

59.3k793143




59.3k793143










asked Nov 11 '14 at 6:21









AnbuAnbu

790619




790619













  • help.ubuntu.com/community/Router

    – krowe
    Nov 11 '14 at 6:54



















  • help.ubuntu.com/community/Router

    – krowe
    Nov 11 '14 at 6:54

















help.ubuntu.com/community/Router

– krowe
Nov 11 '14 at 6:54





help.ubuntu.com/community/Router

– krowe
Nov 11 '14 at 6:54










1 Answer
1






active

oldest

votes


















0














You need this:



Internet<===>Ubuntu Server<====>Linksys(as switch)<====>LAN.



First, set your Linksys to operate as switch (check the manual or something). Connect your internet cable to Ubuntu directly. Then connect Linksys to the other port on Ubuntu. Configure NAT on Ubuntu properly and you get what you want.






share|improve this answer
























  • OK I got the Idea! Should I set the static IP directly to the Ubuntu interface?

    – Anbu
    Nov 11 '14 at 7:09













  • Yes, if your internet connection requires static ip, you must set it on the Ubuntu interface.

    – Heavy
    Nov 11 '14 at 7:11











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f838478%2fneed-help-in-ubuntu-router-with-static-ip%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You need this:



Internet<===>Ubuntu Server<====>Linksys(as switch)<====>LAN.



First, set your Linksys to operate as switch (check the manual or something). Connect your internet cable to Ubuntu directly. Then connect Linksys to the other port on Ubuntu. Configure NAT on Ubuntu properly and you get what you want.






share|improve this answer
























  • OK I got the Idea! Should I set the static IP directly to the Ubuntu interface?

    – Anbu
    Nov 11 '14 at 7:09













  • Yes, if your internet connection requires static ip, you must set it on the Ubuntu interface.

    – Heavy
    Nov 11 '14 at 7:11
















0














You need this:



Internet<===>Ubuntu Server<====>Linksys(as switch)<====>LAN.



First, set your Linksys to operate as switch (check the manual or something). Connect your internet cable to Ubuntu directly. Then connect Linksys to the other port on Ubuntu. Configure NAT on Ubuntu properly and you get what you want.






share|improve this answer
























  • OK I got the Idea! Should I set the static IP directly to the Ubuntu interface?

    – Anbu
    Nov 11 '14 at 7:09













  • Yes, if your internet connection requires static ip, you must set it on the Ubuntu interface.

    – Heavy
    Nov 11 '14 at 7:11














0












0








0







You need this:



Internet<===>Ubuntu Server<====>Linksys(as switch)<====>LAN.



First, set your Linksys to operate as switch (check the manual or something). Connect your internet cable to Ubuntu directly. Then connect Linksys to the other port on Ubuntu. Configure NAT on Ubuntu properly and you get what you want.






share|improve this answer













You need this:



Internet<===>Ubuntu Server<====>Linksys(as switch)<====>LAN.



First, set your Linksys to operate as switch (check the manual or something). Connect your internet cable to Ubuntu directly. Then connect Linksys to the other port on Ubuntu. Configure NAT on Ubuntu properly and you get what you want.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 11 '14 at 7:06









HeavyHeavy

1136




1136













  • OK I got the Idea! Should I set the static IP directly to the Ubuntu interface?

    – Anbu
    Nov 11 '14 at 7:09













  • Yes, if your internet connection requires static ip, you must set it on the Ubuntu interface.

    – Heavy
    Nov 11 '14 at 7:11



















  • OK I got the Idea! Should I set the static IP directly to the Ubuntu interface?

    – Anbu
    Nov 11 '14 at 7:09













  • Yes, if your internet connection requires static ip, you must set it on the Ubuntu interface.

    – Heavy
    Nov 11 '14 at 7:11

















OK I got the Idea! Should I set the static IP directly to the Ubuntu interface?

– Anbu
Nov 11 '14 at 7:09







OK I got the Idea! Should I set the static IP directly to the Ubuntu interface?

– Anbu
Nov 11 '14 at 7:09















Yes, if your internet connection requires static ip, you must set it on the Ubuntu interface.

– Heavy
Nov 11 '14 at 7:11





Yes, if your internet connection requires static ip, you must set it on the Ubuntu interface.

– Heavy
Nov 11 '14 at 7:11


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f838478%2fneed-help-in-ubuntu-router-with-static-ip%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕