首先是js跳转
<script>window.location.href='http://www.xj123.info';</script> |
用php跳转
<?php header("location:http://www.xj123.info")?> |
最后一个利用head的meta跳转
<META HTTP-EQUIV=REFRESH CONTENT="0;URL=http://www.linux.org"> |
首先是js跳转
<script>window.location.href='http://www.xj123.info';</script> |
用php跳转
<?php header("location:http://www.xj123.info")?> |
最后一个利用head的meta跳转
<META HTTP-EQUIV=REFRESH CONTENT="0;URL=http://www.linux.org"> |
<script language="JavaScript"> function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. { var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (document.body.filters)) { for(var j=0; j<document.images.length; j++) { var img = document.images[j] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " var imgStyle = "display:inline-block;" + img.style.cssText if (img.align == "left") imgStyle = "float:left;" + imgStyle if (img.align == "right") imgStyle = "float:right;" + imgStyle if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" img.outerHTML = strNewHTML j = j-1 } } } } window.attachEvent("onload", correctPNG); </script> |
Switch>enable Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 2 Switch(config-vlan)#exit Switch(config)#vlan 3 Switch(config-vlan)#exit Switch(config)#int fa 0/2 Switch(config-if)#switchport access vlan 2 Switch(config-if)#int fa 0/3 Switch(config-if)#switchport access vlan 3 Switch(config-if)#int fa 0/1 Switch(config-if)#switchport mode trunk Switch(config-if)#end |
路由器
Router>enable Router#conf terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int fa 0/0 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#int fa 0/0.1 %LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to Router(config-subif)#encapsulation dot1Q 2 Router(config-subif)#ip add 192.168.1.1 255.255.255.0 Router(config-subif)#exit Router(config)#int fa 0/0.2 %LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to Router(config-subif)#encapsulation dot1Q 3 Router(config-subif)#ip add 192.168.2.1 255.255.255.0 Router(config-subif)#end |
实验目的:配置pc telnet登陆交换机及特权模式的密码
配置过程如下
Switch>en Switch#conf terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int vlan 1 Switch(config-if)#ip add 192.168.1.1 255.255.255.0 Switch(config-if)#no shutdown %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up Switch(config-if)#exit Switch(config)#enable password 123456 Switch(config)#line vty 0 4 Switch(config-line)#password xj123 Switch(config-line)#login Switch(config-line)#end |
本人需要首页和内页的文章标题不一样
本来是把heade的东西复制到index
不过这样增加了index的代码量而且不方便
完美解决方法如下,ps:感谢小鬼
<title> <?php if (is_home() ) { ?><?php bloginfo('name'); ?> _ <?php bloginfo('description'); ?> <?php } else {?><?php wp_title(''); ?> _ <?php bloginfo('name'); ?> <?php } ?> </title> |
馊博客已经低调很久了
论坛关闭也已经一个多月了
可是馊博客不能倒,论坛大家都没有时间管理,所以现在决定做一个导航
独立博客的导航站点,到时候“馊博客”可能改名为“搜博客”
在这里,你可以搜索到你感兴趣的博客
就说这么多
现在程序选定114啦的导航程序
已经在本地调试,计划12月中旬可以试运行
年底正式上线
希望大家到时候可以捧个场~
首先在交换机上配置vlan
配置过程如下
Switch>en
Switch#conf termi
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#exit
Switch(config)#int fa 0/2
Switch(config-if)#sw access vlan 2
Switch(config-if)#int fa 0/3
Switch(config-if)#sw access vlan 2
Switch(config-if)#int fa 0/4
Switch(config-if)#sw access vlan 3
Switch(config-if)#int fa 0/5
Switch(config-if)#sw access vlan 3
Switch(config-if)#int fa 0/1
Switch(config-if)#sw mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Switch(config-if)#no shutdown
我们现在分别ping一下看看
vlan2内的192.168.1.3可以ping通
vlan3的192.168.2.2掉包
我们开始配置路由器
Switch>enable
Switch#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#exit
Switch(config)#int fa 0/1
Switch(config-if)#sw mode trunk
Switch(config-if)#no shutdown
Switch(config-if)#int vlan 2
%LINK-5-CHANGED: Interface Vlan2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to upSwitch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#int vlan3
%LINK-5-CHANGED: Interface Vlan3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to upSwitch(config-if)#ip add 192.168.2.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#end
配置完毕,我们可以show下路由表
下面我们ping试试看
vlan2和vlan3已经可以正常通信
优惠内容: .COM, .US, .MOBI, .BIZ, .NET, .ORG,
.CA, .CO.UK and .IN仅为1.00美元的域名!
第一年的新的注册或转移登记仅适用。此优惠不得用于续费
什么是三层?
三层就是说工作在osi模型第三层的交换机
也就是网络层
三层交换机既然工作在网络层,肯定具有网络层的功能,也就是路由
为什么要使用三层交换机?vlan见的通信必须通过三层交换机来进行。
三层交换机的优势:具有路由的功能,具有交换机的性能
更多三层交换机知识:http://baike.baidu.com/view/44586.htm
最新评论
springwood:自从 CentOS 不维护之后,我换 U...
大D:难都搞下来了,那就更得YM了
大D:只能是YM了,谢总牛啊
灰常记忆:经济不好 今年我也换了机器 一...
大峰:这是海外服务器嘛?速度挺快的。
大D:只能单走一个6了哈哈哈
zwwooooo:买特斯拉和买iPhone的人群其实相似...
平安家属子痕:一直坚持油车,看你写的心里有...
秦大叔:室内每年能开2万公里电车确实划算 ...
灰常记忆:尊贵的特斯拉车主啊,对了一直对单...