Hi,
That depends a little.... how does the ISP assign you an IP-address ? Static / DHCP of PPPoE ?
I will give you some examples below:
PPPoE config:
marcel@srx00> show configuration interfaces ge-0/0/0
description "Internet to ISP";
vlan-tagging;
speed 1g;
mtu 1514;
link-mode full-duplex;
gigether-options {
no-auto-negotiation;
}
unit 0 {
description "Internet to ISP";
encapsulation ppp-over-ether;
vlan-id 128 (You have to put your vlan-id here);
}
pp0 interface config:
marcel@srx00> show configuration interfaces pp0
unit 0 {
point-to-point;
ppp-options {
pap {
access-profile ppp-profile;
local-name isp-username;
local-password "isp-password"; ## SECRET-DATA
passive;
}
}
pppoe-options {
underlying-interface ge-0/0/0.0;
idle-timeout 0;
auto-reconnect 10;
client;
}
family inet {
mtu 1492;
primary;
negotiate-address;
}
}
You have to set a default route for the connection
set routing-options static route 0.0.0.0/0 next-hop pp0.0
Dhcp config:
marcel@srx00> show configuration interfaces ge-0/0/0
description "Internet to ISP";
vlan-tagging;
speed 1g;
mtu 1514;
link-mode full-duplex;
gigether-options {
no-auto-negotiation;
}
unit 0 {
description "Internet to ISP";
vlan-id 128 (You have to put your vlan-id here);
family inet {
primary;
dhcp-client;
}
}
set routing-options static route 0.0.0.0/0 next-hop ge-0/0/0.0
Static config:
marcel@srx00> show configuration interfaces ge-0/0/0
description "Internet to ISP";
vlan-tagging;
speed 1g;
mtu 1514;
link-mode full-duplex;
gigether-options {
no-auto-negotiation;
}
unit 0 {
description "Internet to ISP";
vlan-id 128 (You have to put your vlan-id here);
family inet {
primary;
address ip.you.get.fromyourisp/xx;
}
}
set routing-options static route 0.0.0.0/0 next-hop gateway address of your isp
Hope this helps a bit