# How To Set Default Gateway Using Kickstart File

**URL:** <https://forums.suse.com/t/how-to-set-default-gateway-using-kickstart-file/27099>\
**Category:** SLES Install-Boot\
**Created:** [June 2, 2015, 5:31pm UTC](https://forums.suse.com/t/how-to-set-default-gateway-using-kickstart-file/27099 "2015-06-02T17:31:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![piyush7787](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@piyush7787](https://forums.suse.com/u/piyush7787)\
**Post date:** [June 2, 2015, 5:31pm UTC](https://forums.suse.com/t/how-to-set-default-gateway-using-kickstart-file/27099/1 "2015-06-02T17:31:50Z")

</div>

Hi,

I am new to the SUSE as well as KICKSTART installation of SLES.

Want to know how to set DEFAULT GATEWAY using KICKSTART file of SUSE.

PS:- Able to set gateway for a particular interface in the network configuration file(i.e /etc/sysconfig/network/ifcfg-eth\*) using kickstart file.

Thanks

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [June 2, 2015, 6:28pm UTC](https://forums.suse.com/t/how-to-set-default-gateway-using-kickstart-file/27099/2 "2015-06-02T18:28:55Z")

</div>

Hi piyush7787,

[QUOTE=piyush7787;28144]Hi,

I am new to the SUSE as well as KICKSTART installation of SLES.

Want to know how to set DEFAULT GATEWAY using KICKSTART file of SUSE.

PS:- Able to set gateway for a particular interface in the network configuration file(i.e /etc/sysconfig/network/ifcfg-eth\*) using kickstart file.

Thanks[/QUOTE]

is this really “kickstart”, the typical auto-installation method on SLES is “autoyast”. If you’re not using that, I do recommend to look into switching to using the latter.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![piyush7787](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@piyush7787](https://forums.suse.com/u/piyush7787)\
**Post date:** [June 3, 2015, 9:44am UTC](https://forums.suse.com/t/how-to-set-default-gateway-using-kickstart-file/27099/3 "2015-06-03T09:44:48Z")

</div>

Hi jmozdzen,

[QUOTE=jmozdzen;28147]Hi piyush7787,

is this really “kickstart”, the typical auto-installation method on SLES is “autoyast”. If you’re not using that, I do recommend to look into switching to using the latter.

Regards,  
Jens[/QUOTE]

Pardon Me…!! yes it is “autoyast” which we are using. So want to know how to achieve same via autoyast.

Thanks,  
Piyush7787

---

<div class="post-metadata">

**Author:** ![thsundel](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@thsundel](https://forums.suse.com/u/thsundel)\
**Post date:** [June 3, 2015, 10:24am UTC](https://forums.suse.com/t/how-to-set-default-gateway-using-kickstart-file/27099/4 "2015-06-03T10:24:37Z")

</div>

[QUOTE=piyush7787;28168]Hi jmozdzen,

Pardon Me…!! yes it is “autoyast” which we are using. So want to know how to achieve same via autoyast.

Thanks,  
Piyush7787[/QUOTE]

[https://www.suse.com/documentation/sles11/singlehtml/book\_autoyast/book\_autoyast.html#CreateProfile.Network](https://www.suse.com/documentation/sles11/singlehtml/book_autoyast/book_autoyast.html#CreateProfile.Network)

Thomas

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [June 3, 2015, 10:31am UTC](https://forums.suse.com/t/how-to-set-default-gateway-using-kickstart-file/27099/5 "2015-06-03T10:31:11Z")

</div>

[QUOTE=piyush7787;28168]Hi jmozdzen,

Pardon Me…!! yes it is “autoyast” which we are using. So want to know how to achieve same via autoyast.

Thanks,  
Piyush7787[/QUOTE]

Hi Piyush7787,

add the following to your element:

`[...]<routing>
      <ip_forward config:type="boolean">false</ip_forward>
      <routes config:type="list">
        <route>
          <destination>default</destination>
          <device>-</device>
          <gateway>10.11.12.1</gateway>
          <netmask>-</netmask>
        </route>
      </routes>
    </routing>
  </networking>`  
Of course, you’ll need to adjust to your specifics…

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![piyush7787](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@piyush7787](https://forums.suse.com/u/piyush7787)\
**Post date:** [June 3, 2015, 3:03pm UTC](https://forums.suse.com/t/how-to-set-default-gateway-using-kickstart-file/27099/6 "2015-06-03T15:03:33Z")

</div>

Thanks a lot “Jens” and “Thomas”…!! It worked…!!
