set interfaces em0 unit 0 family inet address 10.0.0.2/24
set routing-options static route 0.0.0.0/0 next-hop 10.0.0.1
Example:
interfaces {
em0 {
unit 0 {
family inet {
address 10.0.0.2/24;
}
}
}
}
routing-options {
static {
route 0.0.0.0/0 next-hop 10.0.0.1;
}
}