0

im new to shell scripting

i want a simle script to configure the ip adress and add a default gw

this is what i got so far

#!/bin/bash
    ifconfig eth0 "ipadress" 
    route add default gw "gw adress"

it does not recognise route ? can anyone help?

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by moroccanplaya
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.