DEFROUTE usage in RHEL 7












1














I am stuck with this configuration here after commenting the DEFRROUTE line I get the ip r output like this. Does it really works with DEFRROUTE=no when uncommented.



[root@vm1 ~]# ip r
default via 192.168.5.1 dev eth0 proto static metric 100
default via 192.168.1.1 dev eth2 proto static metric 101
169.24.0.0/17 dev eth1 proto kernel scope link src 169.24.0.5 metric 100
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.3 metric 100
192.168.5.0/28 dev eth0 proto kernel scope link src 192.168.5.10 metric 100


[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=192.168.1.3
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
#DEFRROUTE=no

[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=192.168.5.10
NETMASK=255.255.255.240
GATEWAY=192.168.5.1
#DEFRROUTE=yes

[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=169.24.0.5
NETMASK=255.255.128.0
#DEFRROUTE=no


When I uncomment the DEFRROUTE I get this below output without route



[root@vm1 ~]# ip r
169.24.0.0/17 dev eth1 proto kernel scope link src 169.24.0.5 metric 100
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.3 metric 100
192.168.5.0/28 dev eth0 proto kernel scope link src 192.168.5.10 metric 100


As @artem suggested via the link, below is the screenshot.



enter image description here










share|improve this question
















bumped to the homepage by Community 20 mins ago


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















  • assume that u have two lan card you have provide ip,subnet and gateway in both lan card, now system used both lan card to reach the destination when you put "DEFROUTE=yes" on lan card one then system always use lan card one on priority to reach every destination..
    – vaghela bhavesh
    Nov 15 at 5:09
















1














I am stuck with this configuration here after commenting the DEFRROUTE line I get the ip r output like this. Does it really works with DEFRROUTE=no when uncommented.



[root@vm1 ~]# ip r
default via 192.168.5.1 dev eth0 proto static metric 100
default via 192.168.1.1 dev eth2 proto static metric 101
169.24.0.0/17 dev eth1 proto kernel scope link src 169.24.0.5 metric 100
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.3 metric 100
192.168.5.0/28 dev eth0 proto kernel scope link src 192.168.5.10 metric 100


[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=192.168.1.3
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
#DEFRROUTE=no

[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=192.168.5.10
NETMASK=255.255.255.240
GATEWAY=192.168.5.1
#DEFRROUTE=yes

[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=169.24.0.5
NETMASK=255.255.128.0
#DEFRROUTE=no


When I uncomment the DEFRROUTE I get this below output without route



[root@vm1 ~]# ip r
169.24.0.0/17 dev eth1 proto kernel scope link src 169.24.0.5 metric 100
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.3 metric 100
192.168.5.0/28 dev eth0 proto kernel scope link src 192.168.5.10 metric 100


As @artem suggested via the link, below is the screenshot.



enter image description here










share|improve this question
















bumped to the homepage by Community 20 mins ago


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















  • assume that u have two lan card you have provide ip,subnet and gateway in both lan card, now system used both lan card to reach the destination when you put "DEFROUTE=yes" on lan card one then system always use lan card one on priority to reach every destination..
    – vaghela bhavesh
    Nov 15 at 5:09














1












1








1







I am stuck with this configuration here after commenting the DEFRROUTE line I get the ip r output like this. Does it really works with DEFRROUTE=no when uncommented.



[root@vm1 ~]# ip r
default via 192.168.5.1 dev eth0 proto static metric 100
default via 192.168.1.1 dev eth2 proto static metric 101
169.24.0.0/17 dev eth1 proto kernel scope link src 169.24.0.5 metric 100
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.3 metric 100
192.168.5.0/28 dev eth0 proto kernel scope link src 192.168.5.10 metric 100


[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=192.168.1.3
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
#DEFRROUTE=no

[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=192.168.5.10
NETMASK=255.255.255.240
GATEWAY=192.168.5.1
#DEFRROUTE=yes

[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=169.24.0.5
NETMASK=255.255.128.0
#DEFRROUTE=no


When I uncomment the DEFRROUTE I get this below output without route



[root@vm1 ~]# ip r
169.24.0.0/17 dev eth1 proto kernel scope link src 169.24.0.5 metric 100
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.3 metric 100
192.168.5.0/28 dev eth0 proto kernel scope link src 192.168.5.10 metric 100


As @artem suggested via the link, below is the screenshot.



enter image description here










share|improve this question















I am stuck with this configuration here after commenting the DEFRROUTE line I get the ip r output like this. Does it really works with DEFRROUTE=no when uncommented.



[root@vm1 ~]# ip r
default via 192.168.5.1 dev eth0 proto static metric 100
default via 192.168.1.1 dev eth2 proto static metric 101
169.24.0.0/17 dev eth1 proto kernel scope link src 169.24.0.5 metric 100
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.3 metric 100
192.168.5.0/28 dev eth0 proto kernel scope link src 192.168.5.10 metric 100


[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=192.168.1.3
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
#DEFRROUTE=no

[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=192.168.5.10
NETMASK=255.255.255.240
GATEWAY=192.168.5.1
#DEFRROUTE=yes

[root@vm1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=169.24.0.5
NETMASK=255.255.128.0
#DEFRROUTE=no


When I uncomment the DEFRROUTE I get this below output without route



[root@vm1 ~]# ip r
169.24.0.0/17 dev eth1 proto kernel scope link src 169.24.0.5 metric 100
192.168.1.0/24 dev eth2 proto kernel scope link src 192.168.1.3 metric 100
192.168.5.0/28 dev eth0 proto kernel scope link src 192.168.5.10 metric 100


As @artem suggested via the link, below is the screenshot.



enter image description here







linux ifconfig






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 12 '17 at 2:38

























asked Jan 6 '17 at 7:40









Mongrel

2,05831445




2,05831445





bumped to the homepage by Community 20 mins 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 20 mins ago


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














  • assume that u have two lan card you have provide ip,subnet and gateway in both lan card, now system used both lan card to reach the destination when you put "DEFROUTE=yes" on lan card one then system always use lan card one on priority to reach every destination..
    – vaghela bhavesh
    Nov 15 at 5:09


















  • assume that u have two lan card you have provide ip,subnet and gateway in both lan card, now system used both lan card to reach the destination when you put "DEFROUTE=yes" on lan card one then system always use lan card one on priority to reach every destination..
    – vaghela bhavesh
    Nov 15 at 5:09
















assume that u have two lan card you have provide ip,subnet and gateway in both lan card, now system used both lan card to reach the destination when you put "DEFROUTE=yes" on lan card one then system always use lan card one on priority to reach every destination..
– vaghela bhavesh
Nov 15 at 5:09




assume that u have two lan card you have provide ip,subnet and gateway in both lan card, now system used both lan card to reach the destination when you put "DEFROUTE=yes" on lan card one then system always use lan card one on priority to reach every destination..
– vaghela bhavesh
Nov 15 at 5:09










2 Answers
2






active

oldest

votes


















0














Try changing it to DEFROUTE as opposed to DEFRROUTE.






share|improve this answer





















  • But why is that needed, could you provide some more information on that.
    – Mongrel
    Jan 6 '17 at 8:35












  • Well, because this is merely right syntax. Try searching for it in CentOS/RHEL docs. For example, link
    – ar_
    Jan 6 '17 at 8:45










  • See the edited question. its not mentioned anywhere in the link.
    – Mongrel
    Jan 10 '17 at 4:58










  • A link to CentOS 5 documentation proclaiming DEFROUTE?
    – Christopher
    Mar 29 at 0:04



















0














DEFROUTE parameter suitable in ppp interface configuration, or may be for BOOTPROTO=dhcp.




  • For Ethernet where you want to have the Default Route set the GATEWAY parameter.

  • For Ethernet where You want not to have Dafault Route omit (or comment) GATEWAY parameter.






share|improve this answer























    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',
    autoActivateHeartbeat: false,
    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%2f335293%2fdefroute-usage-in-rhel-7%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Try changing it to DEFROUTE as opposed to DEFRROUTE.






    share|improve this answer





















    • But why is that needed, could you provide some more information on that.
      – Mongrel
      Jan 6 '17 at 8:35












    • Well, because this is merely right syntax. Try searching for it in CentOS/RHEL docs. For example, link
      – ar_
      Jan 6 '17 at 8:45










    • See the edited question. its not mentioned anywhere in the link.
      – Mongrel
      Jan 10 '17 at 4:58










    • A link to CentOS 5 documentation proclaiming DEFROUTE?
      – Christopher
      Mar 29 at 0:04
















    0














    Try changing it to DEFROUTE as opposed to DEFRROUTE.






    share|improve this answer





















    • But why is that needed, could you provide some more information on that.
      – Mongrel
      Jan 6 '17 at 8:35












    • Well, because this is merely right syntax. Try searching for it in CentOS/RHEL docs. For example, link
      – ar_
      Jan 6 '17 at 8:45










    • See the edited question. its not mentioned anywhere in the link.
      – Mongrel
      Jan 10 '17 at 4:58










    • A link to CentOS 5 documentation proclaiming DEFROUTE?
      – Christopher
      Mar 29 at 0:04














    0












    0








    0






    Try changing it to DEFROUTE as opposed to DEFRROUTE.






    share|improve this answer












    Try changing it to DEFROUTE as opposed to DEFRROUTE.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 6 '17 at 8:25









    ar_

    20215




    20215












    • But why is that needed, could you provide some more information on that.
      – Mongrel
      Jan 6 '17 at 8:35












    • Well, because this is merely right syntax. Try searching for it in CentOS/RHEL docs. For example, link
      – ar_
      Jan 6 '17 at 8:45










    • See the edited question. its not mentioned anywhere in the link.
      – Mongrel
      Jan 10 '17 at 4:58










    • A link to CentOS 5 documentation proclaiming DEFROUTE?
      – Christopher
      Mar 29 at 0:04


















    • But why is that needed, could you provide some more information on that.
      – Mongrel
      Jan 6 '17 at 8:35












    • Well, because this is merely right syntax. Try searching for it in CentOS/RHEL docs. For example, link
      – ar_
      Jan 6 '17 at 8:45










    • See the edited question. its not mentioned anywhere in the link.
      – Mongrel
      Jan 10 '17 at 4:58










    • A link to CentOS 5 documentation proclaiming DEFROUTE?
      – Christopher
      Mar 29 at 0:04
















    But why is that needed, could you provide some more information on that.
    – Mongrel
    Jan 6 '17 at 8:35






    But why is that needed, could you provide some more information on that.
    – Mongrel
    Jan 6 '17 at 8:35














    Well, because this is merely right syntax. Try searching for it in CentOS/RHEL docs. For example, link
    – ar_
    Jan 6 '17 at 8:45




    Well, because this is merely right syntax. Try searching for it in CentOS/RHEL docs. For example, link
    – ar_
    Jan 6 '17 at 8:45












    See the edited question. its not mentioned anywhere in the link.
    – Mongrel
    Jan 10 '17 at 4:58




    See the edited question. its not mentioned anywhere in the link.
    – Mongrel
    Jan 10 '17 at 4:58












    A link to CentOS 5 documentation proclaiming DEFROUTE?
    – Christopher
    Mar 29 at 0:04




    A link to CentOS 5 documentation proclaiming DEFROUTE?
    – Christopher
    Mar 29 at 0:04













    0














    DEFROUTE parameter suitable in ppp interface configuration, or may be for BOOTPROTO=dhcp.




    • For Ethernet where you want to have the Default Route set the GATEWAY parameter.

    • For Ethernet where You want not to have Dafault Route omit (or comment) GATEWAY parameter.






    share|improve this answer




























      0














      DEFROUTE parameter suitable in ppp interface configuration, or may be for BOOTPROTO=dhcp.




      • For Ethernet where you want to have the Default Route set the GATEWAY parameter.

      • For Ethernet where You want not to have Dafault Route omit (or comment) GATEWAY parameter.






      share|improve this answer


























        0












        0








        0






        DEFROUTE parameter suitable in ppp interface configuration, or may be for BOOTPROTO=dhcp.




        • For Ethernet where you want to have the Default Route set the GATEWAY parameter.

        • For Ethernet where You want not to have Dafault Route omit (or comment) GATEWAY parameter.






        share|improve this answer














        DEFROUTE parameter suitable in ppp interface configuration, or may be for BOOTPROTO=dhcp.




        • For Ethernet where you want to have the Default Route set the GATEWAY parameter.

        • For Ethernet where You want not to have Dafault Route omit (or comment) GATEWAY parameter.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jul 17 at 19:34









        slm

        246k66507674




        246k66507674










        answered Mar 28 at 23:48









        mmv-ru

        44138




        44138






























            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%2f335293%2fdefroute-usage-in-rhel-7%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

            サソリ

            広島県道265号伴広島線

            Setup Asymptote in Texstudio