02 2014 档案

[转]为什么连接同一台交换机的不同网段的PC无法进行通信?
摘要:http://cwfsxlove.blog.51cto.com/43997/50387问题:两台不同网段的PC连到一台cisco2950(无三层设备),为什么不同网段的PC无法进行通信?PC不是要广播吗他们连到同一台交换机,另一台PC应该收到了ARP广播啊?掌握cmd下的两个命令arp和route你就会明白,下面解释一下:首先,第一题中明确告诉你无三层设备,也就是说你连的网络中不会有网关的存在,即使你的PC设了一个网关,但是这个网关也是无效的,同意这点吗?画个图来说:PC1--交换机--PC2。PC1假设为192.168.1.1,PC2为192.168.2.1,掩码默认。那么你在发PING请求 阅读全文

posted @ 2014-02-19 21:36 杰克胖 阅读(2375) 评论(0) 推荐(0)

[转]跨网段ping的过程
摘要:http://xiangge456.blog.163.com/blog/static/12797035420101273826488/过程:1.首先PC1观察目的IP:192.168.2.1与本机IP:192.168.1.1是否在同一个网段2.发现不在,因此看本机是否设置了网关,如果没有设置网关,目的不可达;发现设置了网关:192.168.1.254,于是执行步骤33.因为不知道网关的MAC地址,因此发送一个ARP包,获取网关MAC地址:源IP为PC1 IP:192.168.1.1,目的IP为PC1网关IP:192.168.1.254,源MAC为PC1 MAC:11-11-11-11-11-1 阅读全文

posted @ 2014-02-19 20:46 杰克胖 阅读(710) 评论(0) 推荐(0)

[转]git fetch更新远程代码到本地仓库
摘要:http://my.eoe.cn/com360/archive/3533.htmlGit中从远程的分支获取最新的版本到本地方式如下,方式一1. 查看远程仓库1 $ git remote -v2 eoecn https://github.com/eoecn/android-app.git (fetch)3 eoecn https://github.com/eoecn/android-app.git (push)4 origin https://github.com/com360/android-app.git (fetch)5 origin https://github.com/co... 阅读全文

posted @ 2014-02-18 18:19 杰克胖 阅读(1543) 评论(0) 推荐(0)

Git删除不存在对应远程分支的本地分支
摘要:远程分支已经删除,对应的本地分支还存在# git remote show origin* remote origin Fetch URL: git@github.com:xxx/xxx.git Push URL: git@github.com:xxx/xxx.git HEAD branch: master Remote branches: master tracked refs/remotes/origin/b1 stale (use 'git remote prune' to remove) Local branch configure... 阅读全文

posted @ 2014-02-17 19:16 杰克胖 阅读(2404) 评论(0) 推荐(1)

Git删除远程分支
摘要:查看远程分支git br -a删除远程分支git push remote-name(origin) --deleteremote-br-name 阅读全文

posted @ 2014-02-16 00:16 杰克胖 阅读(186) 评论(0) 推荐(0)

Git分支操作
摘要:情景:两台机器公用一个账户同步操作。1. PC1本地分支push到远端 git co -b local-br-name some changes commit git push remote-name(origin) local-br-name:remote-br-name(if remote is omitted, same as local will be applied)2. PC2获取远端分支 git co -b local-br-name remote-name/remote-br-name some changes commit git push(master ... 阅读全文

posted @ 2014-02-13 01:31 杰克胖 阅读(181) 评论(0) 推荐(0)

导航