solaris網絡~最近接觸的一點點

 跟蹤路由:traceroute

 

不過一般看本機路由用netstat -rn

 

 

配置網卡地址及子接口地址:
ifconfig hme0 192.168.0.1 netmask 255.255.255.0 up #hme0視網卡接口而定
ifconfig hme0:1 plumb
然後再用ifconfig hem0:1給它配上IP地址,如:
ifconfig hme0:1 192.168.1.1 netmask 255.255.255.0 up

路由查看:
netstat -rn
修改路由表:
route add net 192.168.11.0 192.168.11.254 1
route add default 192.168.11.254 1
增加靜態路由:
vi /etc/defaultrouter
192.168.11.254 1
重新關閉/啓動tcp/ip協議進程:
sh /etc/init.d/inetinit stop
sh /etc/init.d/inetinit start

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章