Centos cannot ping default gateway











up vote
0
down vote

favorite












I want to give static ip of both my windows server and linux server but when I do this then my default gateway shows Destination Host Unreachable in linux when I ping it in linux.



my windows server settings are




  • ipv4 address 192.168.1.68

  • ipv4 subnet 255.255.255.0

  • ipv4 default gateway 192.168.1.1


and my linux server settings are



eth0 Link encap:Ethernet HWaddr 00:0C:29:6B:E9:8A
inet addr:192.168.178.128 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6b:e98a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44949 errorsBlush | :O droppedBlush | :O overrunsBlush | :O frameBlush | :O
TX packets:34250 errorsBlush | :O droppedBlush | :O overrunsBlush | :O carrierBlush | :O
collisionsBlush | :O txqueuelen:1000
RX bytes:30998896 (29.5 MiB) TX bytes:1860368 (1.7 MiB)


lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:231 errorsBlush | :O droppedBlush | :O overrunsBlush | :O frameBlush | :O
TX packets:231 errorsBlush | :O droppedBlush | :O overrunsBlush | :O carrierBlush | :O
collisionsBlush | :O txqueuelenBlush | :O
RX bytes:23426 (22.8 KiB) TX bytes:23426 (22.8 KiB)









share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • i gave these settings to my windows machine ipv4 address 192.168.1.68 ipv4 subnet 255.255.255.0 ipv4 default gateway 192.168.1.1 and these settings to my linux server ip address 192.168.1.128 Netmask 255.255.255.0 gateway 192.168.1.1 but when i ping gateway in linux server then it shows destination host unreachable and also when i ping google.com in linux then it shows host unreachable. tell me the solution what i do now to solve this problem...
    – Waleed Bin Arshad
    Mar 17 '15 at 10:00








  • 1




    obviously linux host is a vmware, what type is network interface in vmware settings ?
    – Archemar
    Mar 17 '15 at 10:05






  • 4




    The IP address on eth0 is 192.168.178.128. You said it should be 192.168.1.128. You need either to fix your requirements or your interface IP address.
    – roaima
    Mar 17 '15 at 10:06












  • You must 2 interface if the Linux system is VM. interface 1 should be NAT and interface 2 should be host only network network.
    – Mongrel
    Mar 15 '16 at 7:57










  • Can you paste the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 ? In particular you want there to be a line that say's DEFROUTE=yes
    – Gravy
    Sep 29 '16 at 21:40















up vote
0
down vote

favorite












I want to give static ip of both my windows server and linux server but when I do this then my default gateway shows Destination Host Unreachable in linux when I ping it in linux.



my windows server settings are




  • ipv4 address 192.168.1.68

  • ipv4 subnet 255.255.255.0

  • ipv4 default gateway 192.168.1.1


and my linux server settings are



eth0 Link encap:Ethernet HWaddr 00:0C:29:6B:E9:8A
inet addr:192.168.178.128 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6b:e98a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44949 errorsBlush | :O droppedBlush | :O overrunsBlush | :O frameBlush | :O
TX packets:34250 errorsBlush | :O droppedBlush | :O overrunsBlush | :O carrierBlush | :O
collisionsBlush | :O txqueuelen:1000
RX bytes:30998896 (29.5 MiB) TX bytes:1860368 (1.7 MiB)


lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:231 errorsBlush | :O droppedBlush | :O overrunsBlush | :O frameBlush | :O
TX packets:231 errorsBlush | :O droppedBlush | :O overrunsBlush | :O carrierBlush | :O
collisionsBlush | :O txqueuelenBlush | :O
RX bytes:23426 (22.8 KiB) TX bytes:23426 (22.8 KiB)









share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • i gave these settings to my windows machine ipv4 address 192.168.1.68 ipv4 subnet 255.255.255.0 ipv4 default gateway 192.168.1.1 and these settings to my linux server ip address 192.168.1.128 Netmask 255.255.255.0 gateway 192.168.1.1 but when i ping gateway in linux server then it shows destination host unreachable and also when i ping google.com in linux then it shows host unreachable. tell me the solution what i do now to solve this problem...
    – Waleed Bin Arshad
    Mar 17 '15 at 10:00








  • 1




    obviously linux host is a vmware, what type is network interface in vmware settings ?
    – Archemar
    Mar 17 '15 at 10:05






  • 4




    The IP address on eth0 is 192.168.178.128. You said it should be 192.168.1.128. You need either to fix your requirements or your interface IP address.
    – roaima
    Mar 17 '15 at 10:06












  • You must 2 interface if the Linux system is VM. interface 1 should be NAT and interface 2 should be host only network network.
    – Mongrel
    Mar 15 '16 at 7:57










  • Can you paste the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 ? In particular you want there to be a line that say's DEFROUTE=yes
    – Gravy
    Sep 29 '16 at 21:40













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to give static ip of both my windows server and linux server but when I do this then my default gateway shows Destination Host Unreachable in linux when I ping it in linux.



my windows server settings are




  • ipv4 address 192.168.1.68

  • ipv4 subnet 255.255.255.0

  • ipv4 default gateway 192.168.1.1


and my linux server settings are



eth0 Link encap:Ethernet HWaddr 00:0C:29:6B:E9:8A
inet addr:192.168.178.128 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6b:e98a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44949 errorsBlush | :O droppedBlush | :O overrunsBlush | :O frameBlush | :O
TX packets:34250 errorsBlush | :O droppedBlush | :O overrunsBlush | :O carrierBlush | :O
collisionsBlush | :O txqueuelen:1000
RX bytes:30998896 (29.5 MiB) TX bytes:1860368 (1.7 MiB)


lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:231 errorsBlush | :O droppedBlush | :O overrunsBlush | :O frameBlush | :O
TX packets:231 errorsBlush | :O droppedBlush | :O overrunsBlush | :O carrierBlush | :O
collisionsBlush | :O txqueuelenBlush | :O
RX bytes:23426 (22.8 KiB) TX bytes:23426 (22.8 KiB)









share|improve this question















I want to give static ip of both my windows server and linux server but when I do this then my default gateway shows Destination Host Unreachable in linux when I ping it in linux.



my windows server settings are




  • ipv4 address 192.168.1.68

  • ipv4 subnet 255.255.255.0

  • ipv4 default gateway 192.168.1.1


and my linux server settings are



eth0 Link encap:Ethernet HWaddr 00:0C:29:6B:E9:8A
inet addr:192.168.178.128 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6b:e98a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44949 errorsBlush | :O droppedBlush | :O overrunsBlush | :O frameBlush | :O
TX packets:34250 errorsBlush | :O droppedBlush | :O overrunsBlush | :O carrierBlush | :O
collisionsBlush | :O txqueuelen:1000
RX bytes:30998896 (29.5 MiB) TX bytes:1860368 (1.7 MiB)


lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:231 errorsBlush | :O droppedBlush | :O overrunsBlush | :O frameBlush | :O
TX packets:231 errorsBlush | :O droppedBlush | :O overrunsBlush | :O carrierBlush | :O
collisionsBlush | :O txqueuelenBlush | :O
RX bytes:23426 (22.8 KiB) TX bytes:23426 (22.8 KiB)






linux vmware






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 17 '15 at 10:01









Archemar

19.6k93570




19.6k93570










asked Mar 17 '15 at 9:58









Waleed Bin Arshad

111




111





bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • i gave these settings to my windows machine ipv4 address 192.168.1.68 ipv4 subnet 255.255.255.0 ipv4 default gateway 192.168.1.1 and these settings to my linux server ip address 192.168.1.128 Netmask 255.255.255.0 gateway 192.168.1.1 but when i ping gateway in linux server then it shows destination host unreachable and also when i ping google.com in linux then it shows host unreachable. tell me the solution what i do now to solve this problem...
    – Waleed Bin Arshad
    Mar 17 '15 at 10:00








  • 1




    obviously linux host is a vmware, what type is network interface in vmware settings ?
    – Archemar
    Mar 17 '15 at 10:05






  • 4




    The IP address on eth0 is 192.168.178.128. You said it should be 192.168.1.128. You need either to fix your requirements or your interface IP address.
    – roaima
    Mar 17 '15 at 10:06












  • You must 2 interface if the Linux system is VM. interface 1 should be NAT and interface 2 should be host only network network.
    – Mongrel
    Mar 15 '16 at 7:57










  • Can you paste the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 ? In particular you want there to be a line that say's DEFROUTE=yes
    – Gravy
    Sep 29 '16 at 21:40


















  • i gave these settings to my windows machine ipv4 address 192.168.1.68 ipv4 subnet 255.255.255.0 ipv4 default gateway 192.168.1.1 and these settings to my linux server ip address 192.168.1.128 Netmask 255.255.255.0 gateway 192.168.1.1 but when i ping gateway in linux server then it shows destination host unreachable and also when i ping google.com in linux then it shows host unreachable. tell me the solution what i do now to solve this problem...
    – Waleed Bin Arshad
    Mar 17 '15 at 10:00








  • 1




    obviously linux host is a vmware, what type is network interface in vmware settings ?
    – Archemar
    Mar 17 '15 at 10:05






  • 4




    The IP address on eth0 is 192.168.178.128. You said it should be 192.168.1.128. You need either to fix your requirements or your interface IP address.
    – roaima
    Mar 17 '15 at 10:06












  • You must 2 interface if the Linux system is VM. interface 1 should be NAT and interface 2 should be host only network network.
    – Mongrel
    Mar 15 '16 at 7:57










  • Can you paste the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 ? In particular you want there to be a line that say's DEFROUTE=yes
    – Gravy
    Sep 29 '16 at 21:40
















i gave these settings to my windows machine ipv4 address 192.168.1.68 ipv4 subnet 255.255.255.0 ipv4 default gateway 192.168.1.1 and these settings to my linux server ip address 192.168.1.128 Netmask 255.255.255.0 gateway 192.168.1.1 but when i ping gateway in linux server then it shows destination host unreachable and also when i ping google.com in linux then it shows host unreachable. tell me the solution what i do now to solve this problem...
– Waleed Bin Arshad
Mar 17 '15 at 10:00






i gave these settings to my windows machine ipv4 address 192.168.1.68 ipv4 subnet 255.255.255.0 ipv4 default gateway 192.168.1.1 and these settings to my linux server ip address 192.168.1.128 Netmask 255.255.255.0 gateway 192.168.1.1 but when i ping gateway in linux server then it shows destination host unreachable and also when i ping google.com in linux then it shows host unreachable. tell me the solution what i do now to solve this problem...
– Waleed Bin Arshad
Mar 17 '15 at 10:00






1




1




obviously linux host is a vmware, what type is network interface in vmware settings ?
– Archemar
Mar 17 '15 at 10:05




obviously linux host is a vmware, what type is network interface in vmware settings ?
– Archemar
Mar 17 '15 at 10:05




4




4




The IP address on eth0 is 192.168.178.128. You said it should be 192.168.1.128. You need either to fix your requirements or your interface IP address.
– roaima
Mar 17 '15 at 10:06






The IP address on eth0 is 192.168.178.128. You said it should be 192.168.1.128. You need either to fix your requirements or your interface IP address.
– roaima
Mar 17 '15 at 10:06














You must 2 interface if the Linux system is VM. interface 1 should be NAT and interface 2 should be host only network network.
– Mongrel
Mar 15 '16 at 7:57




You must 2 interface if the Linux system is VM. interface 1 should be NAT and interface 2 should be host only network network.
– Mongrel
Mar 15 '16 at 7:57












Can you paste the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 ? In particular you want there to be a line that say's DEFROUTE=yes
– Gravy
Sep 29 '16 at 21:40




Can you paste the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 ? In particular you want there to be a line that say's DEFROUTE=yes
– Gravy
Sep 29 '16 at 21:40















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f190674%2fcentos-cannot-ping-default-gateway%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2funix.stackexchange.com%2fquestions%2f190674%2fcentos-cannot-ping-default-gateway%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

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt