Hi I have followed a tutorial to setup a aggregated link. I have two 1 gig ethernet ports on the server which I don't use.
I then have pci card with two 10 gig ethernet ports. I have a commercial switch that supports link aggregation and I have that setup.
I then setup freebsd with this and it worked until recently I done a update on my ports.
Right now I get errors when I ping google.com and ping 8.8.8.8. for the ping 8.8.8.8 error says there's not route to host.
I type in the ifconfig and look at my lagg0 interface and noticed the data is messed up.
when I boot them system or if I resart netif it defaults to these settings which is wrong.
for example :
lets say my gateway is 34.233.213.164 and it's 8 ips. total.
in this case lets say my static ip is 34.233.213.169
my broadcast ip would be 34.233.213.171
So, in my rc.conf file I have it setup to use 34.233.213.169/31 as ip and submask or netmask 255.255.255.248.
I don't set broadcast ip. However, when I check ifconfig it sets the broadcast ip to 255.255.255.255 .
which in my opinion is wrong and I feel this is the issue. I have the ports up.
so, I do a ifconfig
It would show lagg0 now with a broadcast ip of 34.233.213.171 everything looks good but netmask is in hex I cannot read it.
Is there a way to convert netmask to ip format? I just want to make sure everything has the right numbers.
I try pinging the sanme thing posted above and I still get errors. The resolv,conf does have ip addresses of the dns servers.
the issue I am having is routing. when I type netstat -r the routing table doesn't show a default gateway.
Even though I have set defaultrouter as 34.233.213.164 in rc.conf.
I would like to know how can I get ifconfig to output the netmask in ipv4 format? Also
how can I put in rc.conf setting to set the broadcast ip?
in the terminal I have done ifconfig lagg0 followed by broadcast then 34.233.213.171 but it doesn't do anything.
If I check ifconfig again it ould show no changes to the broadcast ip.
In the rc.conf I have the lagg set with ipv4_addr_lagg0 on a different line. I forgot the exact wording but it worked before.
before when it worked it would automatically put broadcast ip 34.233.213.171 in lagg0.
Now when the lagg0 starts it's automatically set to 255.255.255.255 which is wrong. I would have to change it in teriminal.
and then restart routing. If I restart netif it would set the lagg0 broadcast ip back to 255.255.255.255.
Is there anything I should check. I don't get why the broadcast ip get's automatically assigned the wrong ip address.
The ip's i used above is just an example and it's not my own ip. However, my ISP given me static ip's and they gave me the ip's of the gateway
and the broadcast ip. On my windows machines I normally don't have to assign the broadcast ip. just had to set ip, gateway and submask.
Any ideas on what I should try or look for?
Thanks in Advance
I then have pci card with two 10 gig ethernet ports. I have a commercial switch that supports link aggregation and I have that setup.
I then setup freebsd with this and it worked until recently I done a update on my ports.
Right now I get errors when I ping google.com and ping 8.8.8.8. for the ping 8.8.8.8 error says there's not route to host.
I type in the ifconfig and look at my lagg0 interface and noticed the data is messed up.
when I boot them system or if I resart netif it defaults to these settings which is wrong.
for example :
lets say my gateway is 34.233.213.164 and it's 8 ips. total.
in this case lets say my static ip is 34.233.213.169
my broadcast ip would be 34.233.213.171
So, in my rc.conf file I have it setup to use 34.233.213.169/31 as ip and submask or netmask 255.255.255.248.
I don't set broadcast ip. However, when I check ifconfig it sets the broadcast ip to 255.255.255.255 .
which in my opinion is wrong and I feel this is the issue. I have the ports up.
so, I do a ifconfig
ifconfig lagg0 34.233.213.169 34.233.213.171
Then enter and I would look at the ifconfig again.It would show lagg0 now with a broadcast ip of 34.233.213.171 everything looks good but netmask is in hex I cannot read it.
Is there a way to convert netmask to ip format? I just want to make sure everything has the right numbers.
I try pinging the sanme thing posted above and I still get errors. The resolv,conf does have ip addresses of the dns servers.
the issue I am having is routing. when I type netstat -r the routing table doesn't show a default gateway.
Even though I have set defaultrouter as 34.233.213.164 in rc.conf.
I would like to know how can I get ifconfig to output the netmask in ipv4 format? Also
how can I put in rc.conf setting to set the broadcast ip?
in the terminal I have done ifconfig lagg0 followed by broadcast then 34.233.213.171 but it doesn't do anything.
If I check ifconfig again it ould show no changes to the broadcast ip.
In the rc.conf I have the lagg set with ipv4_addr_lagg0 on a different line. I forgot the exact wording but it worked before.
before when it worked it would automatically put broadcast ip 34.233.213.171 in lagg0.
Now when the lagg0 starts it's automatically set to 255.255.255.255 which is wrong. I would have to change it in teriminal.
and then restart routing. If I restart netif it would set the lagg0 broadcast ip back to 255.255.255.255.
Is there anything I should check. I don't get why the broadcast ip get's automatically assigned the wrong ip address.
The ip's i used above is just an example and it's not my own ip. However, my ISP given me static ip's and they gave me the ip's of the gateway
and the broadcast ip. On my windows machines I normally don't have to assign the broadcast ip. just had to set ip, gateway and submask.
Any ideas on what I should try or look for?
Thanks in Advance